diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 831f6ab..2296a46 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,14 +51,13 @@ jobs: # working-directory: ./client # run: npm test - - name: Build client - working-directory: ./client - run: npm run build - - # - name: Deploy to Vercel - # if: github.ref == 'refs/heads/master' - # env: - # VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} - # run: | - # npm install -g vercel - # vercel --prod --token $VERCEL_TOKEN + # Step 5: Install Vercel CLI + - name: Install Vercel CLI + run: npm install -g vercel + + # Step 6: Deploy to Vercel + - name: Deploy to Vercel + run: echo "VERCEL_TOKEN is $VERCEL_TOKEN" + env: + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} # Ensure this is referencing the correct GitHub secret + # run: vercel --prod --token $VERCEL_TOKEN