Skip to content

Commit b18662e

Browse files
committed
Refactor GitHub Actions deployment workflow to use Vercel Action
- Replaced manual Vercel CLI commands with amondnet/vercel-action for streamlined deployment. - Removed installation of Vercel CLI and environment variable pulling steps. - Updated deployment step to include organization and project IDs for improved configuration.
1 parent 2bc1457 commit b18662e

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,10 @@ jobs:
3939
- name: Install dependencies
4040
run: bun install
4141

42-
- name: Install Vercel CLI
43-
run: bun add -g vercel@latest
44-
45-
- name: Pull Vercel environment variables
46-
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
47-
48-
- name: Build project
49-
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
50-
5142
- name: Deploy to Vercel
52-
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
43+
uses: amondnet/vercel-action@v25
44+
with:
45+
vercel-token: ${{ secrets.VERCEL_TOKEN }}
46+
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
47+
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
48+
vercel-args: '--prod'

0 commit comments

Comments
 (0)