Skip to content

Force Deploy to Vercel Production #25

Force Deploy to Vercel Production

Force Deploy to Vercel Production #25

Workflow file for this run

name: Force Deploy to Vercel Production
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
repository_dispatch:
types: [force-deploy]
workflow_dispatch:
inputs:
distinct_id:
jobs:
force-deploy:
runs-on: ubuntu-latest
steps:
- name: Distinct ID ${{ github.event.inputs.distinct_id }}
run: echo ${{ github.event.inputs.distinct_id }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Bun
run: curl -fsSL https://bun.sh/install | bash
- name: Add Bun to PATH
run: echo "$HOME/.bun/bin" >> $GITHUB_PATH
- name: Pull Vercel Environment Information
run: bunx vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Vercel Output
run: bunx vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy to Vercel
run: bunx vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}