Skip to content

Commit ab2ba50

Browse files
authoredSep 17, 2024··
fix(ci): Update API ref deployment action & vercelignore (#6835)
1 parent e4489d1 commit ab2ba50

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed
 

‎.github/workflows/deploy-api-refs-prod.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy API Refs Prod
33
on:
44
workflow_dispatch: # Allows triggering the workflow manually in GitHub UI
55
push:
6-
branches: ["main"]
6+
branches: ["main", "v0.2"]
77

88
# If another push to the same PR or branch happens while this workflow is still running,
99
# cancel the earlier run in favor of the next run.
@@ -36,9 +36,4 @@ jobs:
3636
- name: Build Project Artifacts
3737
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
3838
- name: Deploy to Vercel
39-
run: |
40-
if [ ${{ github.ref }} = 'refs/heads/main' ]; then
41-
vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }}
42-
else
43-
vercel deploy --token=${{ secrets.VERCEL_TOKEN }}
44-
fi
39+
run: vercel deploy --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }}

‎.vercelignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
node_modules/
2-
**/node_modules/
2+
**/node_modules/
3+
.next/
4+
**/.next/

0 commit comments

Comments
 (0)
Please sign in to comment.