Skip to content

Commit 89d2988

Browse files
deploy to vercel
1 parent 532bc78 commit 89d2988

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/pipeline.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches:
66
- main
7+
pull_request:
8+
branches:
9+
- main
10+
types: [opened, synchronize]
711

812
jobs:
913
deploy:
@@ -25,3 +29,13 @@ jobs:
2529

2630
- name: Tests
2731
run: npm run coverage
32+
33+
- name: Deploy to Vercel
34+
if: github.ref == 'refs/heads/main'
35+
run: |
36+
npm install -g vercel
37+
vercel --token=$VERCEL_TOKEN --prod --confirm --org $VERCEL_ORG_ID --project $VERCEL_PROJECT_ID
38+
env:
39+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
40+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
41+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

0 commit comments

Comments
 (0)