Skip to content

force-deploy

force-deploy #1

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]
jobs:
force-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Bun
run: curl -fsSL https://bun.sh/install | bash
- name: Add Bun to PATH
run: echo "$HOME/.bun/bin" >> $GITHUB_PATH
- name: Install Dependencies
run: bun install
- name: Run Build Script
run: bun run build
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Vercel Output
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}