From ea6f19f7a85942dcc76a3146f3f85add8fd88e39 Mon Sep 17 00:00:00 2001 From: John Costa Date: Wed, 6 May 2026 12:53:57 -1000 Subject: [PATCH] ci: add Vercel auto-deploy via GitHub Actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Vercel→GitHub OAuth integration is severed at the account level and can only be restored through a browser consent flow. This workflow gives us push-on-commit auto-deploy without depending on the integration: GitHub Actions runs `vercel deploy --prod` on every push to main using a dedicated CI token. Survives future integration breaks. Required secrets: VERCEL_TOKEN, VERCEL_ORG_ID, VERCEL_PROJECT_ID. --- .github/workflows/deploy.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..d8eb4df --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,26 @@ +name: Deploy to Vercel + +on: + push: + branches: [main] + +concurrency: + group: deploy-prod + cancel-in-progress: false + +jobs: + deploy: + runs-on: ubuntu-latest + env: + VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} + VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + - run: npm i -g vercel@latest + - run: vercel pull --yes --environment=production --token="$VERCEL_TOKEN" + - run: vercel build --prod --token="$VERCEL_TOKEN" + - run: vercel deploy --prebuilt --prod --token="$VERCEL_TOKEN"