Skip to content

Commit

Permalink
Add GitHub Action for deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
benborgers committed Aug 26, 2024
1 parent 1214aac commit 9dec196
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Using this to deploy instead of Vercel's GitHub integration because the
# actual integration requires a paid Vercel account.

name: Vercel Production Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches:
- main
jobs:
prod-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.vercel

# build output
dist/
# generated types
Expand Down

0 comments on commit 9dec196

Please sign in to comment.