Skip to content

Commit

Permalink
workflow setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakshchopra committed Sep 1, 2022
1 parent 675ceef commit bb152eb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/vercel-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Production
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: cd ui && npm install --global vercel@latest
- run: cd ui && vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- run: cd ui && vercel build --token=${{ secrets.VERCEL_TOKEN }} --prod
- run: cd ui && vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --prod

0 comments on commit bb152eb

Please sign in to comment.