Skip to content

Commit 8c90bc9

Browse files
committed
chore: update Vercel deployment workflows for sandbox and website
- Transitioned from using vercel-action to direct npx vercel deploy command. - Moved Vercel environment variables to the env section for better security and clarity. - Simplified deployment commands for both sandbox and website projects.
1 parent 56b9b3c commit 8c90bc9

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/deploy-sandbox.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
- uses: actions/checkout@v4
1313

1414
- name: Deploy to Vercel
15-
uses: amondnet/vercel-action@v25
16-
with:
17-
vercel-token: ${{ secrets.VERCEL_TOKEN }}
18-
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
19-
vercel-project-id: ${{ secrets.VERCEL_SANDBOX_PROJECT_ID }}
20-
vercel-args: '--prod'
21-
working-directory: ./apps/sandbox
15+
working-directory: ./apps/sandbox
16+
env:
17+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
18+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
19+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_SANDBOX_PROJECT_ID }}
20+
run: |
21+
npx vercel deploy --prod --token=$VERCEL_TOKEN --yes

.github/workflows/deploy-website.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
- uses: actions/checkout@v4
1313

1414
- name: Deploy to Vercel
15-
uses: amondnet/vercel-action@v25
16-
with:
17-
vercel-token: ${{ secrets.VERCEL_TOKEN }}
18-
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
19-
vercel-project-id: ${{ secrets.VERCEL_WEBSITE_PROJECT_ID }}
20-
vercel-args: '--prod'
21-
working-directory: ./apps/website
15+
working-directory: ./apps/website
16+
env:
17+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
18+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
19+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_WEBSITE_PROJECT_ID }}
20+
run: |
21+
npx vercel deploy --prod --token=$VERCEL_TOKEN --yes

0 commit comments

Comments
 (0)