From 9dec1969c341d6199cdd602e1004e3438fcbb0d9 Mon Sep 17 00:00:00 2001 From: Ben Borgers Date: Mon, 26 Aug 2024 02:30:04 -0400 Subject: [PATCH] Add GitHub Action for deploying --- .github/workflows/deploy.yml | 20 ++++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..10f7de9 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 }} diff --git a/.gitignore b/.gitignore index 16d54bb..6e219e8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +.vercel + # build output dist/ # generated types