Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment never finish #32

Closed
vLX42 opened this issue Sep 1, 2020 · 3 comments
Closed

Deployment never finish #32

vLX42 opened this issue Sep 1, 2020 · 3 comments

Comments

@vLX42
Copy link

vLX42 commented Sep 1, 2020

When running it never finish, and I can see this in the log when I cancel.

2020-09-01T13:26:58.5183684Z Vercel CLI 20.0.0
2020-09-01T13:26:59.2237265Z - Deploying xxx/xxxx
2020-09-01T13:26:59.2238019Z 
2020-09-01T13:26:59.2239153Z - Deploying xxx/xxxx
2020-09-01T13:27:00.2217597Z �[2K�[G
2020-09-01T13:27:00.2231971Z �[2K�[GAuto-detected Project Settings (Next.js):
2020-09-01T13:27:00.2232173Z 
2020-09-01T13:27:00.2232722Z Auto-detected Project Settings (Next.js):
2020-09-01T13:27:00.2233294Z - Build Command: `npm run build` or `next build`
2020-09-01T13:27:00.2236230Z - Output Directory: Next.js default
2020-09-01T13:27:00.2236425Z 
2020-09-01T13:27:00.2236959Z - Build Command: `npm run build` or `next build`
2020-09-01T13:27:00.2237494Z - Output Directory: Next.js default
2020-09-01T13:27:00.2238039Z - Development Command: next dev --port $PORT
2020-09-01T13:27:00.2238216Z 
2020-09-01T13:27:00.2238729Z - Development Command: next dev --port $PORT
2020-09-01T13:27:00.2322574Z ? Want to override the settings? [y/N] 
2020-09-01T13:27:00.2328032Z ? Want to override the settings? [y/N]

My yml file:

name: deploy website
on: [pull_request]
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: amondnet/vercel-action@v19.0.1+3
        with:
          vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
          github-comment: false
          vercel-args: '--prod' #Optional
          vercel-org-id: ${{ secrets.ORG_ID}}  #Required
          vercel-project-id: ${{ secrets.PROJECT_ID}} #Required
          vercel-project-name: 'project-name'
          working-directory: packages/frontend #Your Working Directory, Optional

          alias-domains: | #Optional
            staging.domain.tech
            pr-{{PR_NUMBER}}.domain.tech

@vLX42 vLX42 closed this as completed Sep 2, 2020
@pedromoraisf
Copy link

@vLX42 , how did you solve the problem? I'm going through the same thing...

@brayanarrieta
Copy link

I'm having the same issue

@Shestac92
Copy link

@pedromoraisf @brayanarrieta
To solve that you can try two options below:

  1. apply working-directory correctly in your github action
  2. try to add vercel-args: --confirm, it skips questions you are asked

I had the same issue, the first one solved my use case. The second option too, but the deployment was not still valid without a correctly applied working directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants