Skip to content

Commit cf9c9f0

Browse files
Thunkarclaude
andcommitted
Allow production redeploy via workflow_dispatch
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent cd74a20 commit cf9c9f0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ on:
99
- main
1010
- next
1111
workflow_dispatch:
12+
inputs:
13+
production:
14+
description: 'Deploy to production'
15+
required: false
16+
default: true
17+
type: boolean
1218

1319
env:
1420
PASSWORD: ${{ secrets.PASSWORD }}
@@ -74,7 +80,7 @@ jobs:
7480
env:
7581
VITE_WEB_WALLET_URL: ${{ vars.VITE_WEB_WALLET_URL }}
7682
run: |
77-
if [ "${{ github.event_name }}" == "push" ] && [ "${{ github.ref }}" == "refs/heads/main" ]; then
83+
if ([ "${{ github.event_name }}" == "push" ] && [ "${{ github.ref }}" == "refs/heads/main" ]) || ([ "${{ github.event_name }}" == "workflow_dispatch" ] && [ "${{ inputs.production }}" == "true" ]); then
7884
vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
7985
DEPLOY_URL=$(vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} --archive=tgz --yes)
8086
else

0 commit comments

Comments
 (0)