Skip to content

Commit 2afaed3

Browse files
[fix] removed preview and added prod deployment
1 parent cb956cb commit 2afaed3

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
name: Vercel Preview Deployment
1+
name: Vercel Production Deployment
22
env:
33
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
44
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
55
on:
66
workflow_dispatch:
77
push:
8-
branches-ignore:
8+
branches:
99
- main
1010
jobs:
11-
Deploy-Preview:
11+
Deploy-Production:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v2
1515
- name: Install Vercel CLI
1616
run: npm install --global vercel@latest
1717
- name: Pull Vercel Environment Information
18-
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
18+
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
1919
- name: Build Project Artifacts
20-
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
20+
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
2121
- name: Deploy Project Artifacts to Vercel
22-
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
22+
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

0 commit comments

Comments
 (0)