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

loop #233

Open
BlackRam-oss opened this issue Jun 5, 2023 · 1 comment
Open

loop #233

BlackRam-oss opened this issue Jun 5, 2023 · 1 comment

Comments

@BlackRam-oss
Copy link

BlackRam-oss commented Jun 5, 2023

I was looking for the yml file. i noticed a problem.
even though it goes to error the deployment continues indefinitely.
i tried several times.

i guess i set something wrong, but instead of freezing is telling me what went wrong, it continues endlessly.
image

name: Vercel CI

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [19.x]
        # See supported Node.js release schedule at https://nodejs.org/en/about/releases/

    steps:
    - uses: actions/checkout@v3
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v3
      with:
        node-version: ${{ matrix.node-version }}
    - name: npm install and ci and build
      env:
        REACT_APP_API_KEY_CROWDIN: ${{ secrets.API_KEY_CROWDIN }}
        REACT_APP_API_KEY_GITHUB: ${{ secrets.API_KEY_GITHUB }}
      run: |
        npm install
        npm ci
        npm run build
        mv out build
    - name: Archive Build
      uses: actions/upload-artifact@v3
      with:
        name: build
        path: build

  # https://github.com/marketplace/actions/vercel-action
  # https://github.com/vercel/vercel/discussions/4367#discussioncomment-1672222
  deploy:
    name: Deploy
    needs: build
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Download Build
        uses: actions/download-artifact@v3
        with:
          name: build
          path: build
      - uses: amondnet/vercel-action@v25 #deploy
        with:
          vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
          github-token: ${{ secrets.GITHUB_TOKEN }} #Optional 
          # vercel-args: '--prod' #Optional
          vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}  #Required
          vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}} #Required 
          working-directory: build
@codewithcheese
Copy link

Need to add the scope variable. See #138 (comment)

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

2 participants