Force Deploy to Vercel Production #74
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |