Skip to content

Commit 59b9dff

Browse files
catomeanclaude
andcommitted
fix(ci): use Vercel CLI directly for deploys, disable Git auto-deploy
Replace amondnet/vercel-action@v25 (bundles ancient Vercel CLI 25.1.0) with latest vercel CLI + --archive=tgz to avoid free-tier upload rate limits. Disable Vercel Git integration auto-deploy to prevent duplicate deployments — GitHub Actions is the sole deploy mechanism. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5285473 commit 59b9dff

2 files changed

Lines changed: 16 additions & 23 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -34,30 +34,20 @@ jobs:
3434
- name: Run tests
3535
run: npm run test --if-present
3636

37-
- name: Deploy to Vercel (Preview)
38-
if: github.event_name == 'pull_request'
39-
uses: amondnet/vercel-action@v25
40-
with:
41-
vercel-token: ${{ secrets.VERCEL_TOKEN }}
42-
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
43-
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
44-
vercel-args: '--prod=false'
45-
working-directory: ./
46-
alias-domains: |-
47-
pr-{{ pr-number }}.${{ secrets.VERCEL_TEAM_URL }}
37+
- name: Install Vercel CLI
38+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
39+
run: npm install -g vercel@latest
4840

4941
- name: Deploy to Vercel (Production)
5042
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
51-
uses: amondnet/vercel-action@v25
52-
with:
53-
vercel-token: ${{ secrets.VERCEL_TOKEN }}
54-
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
55-
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
56-
vercel-args: '--prod=true'
57-
working-directory: ./
43+
run: vercel deploy --prod --archive=tgz --yes --token=${{ secrets.VERCEL_TOKEN }}
44+
env:
45+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
46+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
5847

59-
- name: Health Check
60-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
61-
run: |
62-
echo "Deployment completed successfully"
63-
echo "Site will be available at: https://${{ secrets.VERCEL_TEAM_URL }}"
48+
- name: Deploy to Vercel (Preview)
49+
if: github.event_name == 'pull_request'
50+
run: vercel deploy --archive=tgz --yes --token=${{ secrets.VERCEL_TOKEN }}
51+
env:
52+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
53+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

vercel.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"buildCommand": "next build",
33
"devCommand": "next dev",
44
"framework": "nextjs",
5+
"github": {
6+
"enabled": false
7+
},
58
"crons": [
69
{
710
"path": "/api/rebuild",

0 commit comments

Comments
 (0)