We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd74a20 commit cf9c9f0Copy full SHA for cf9c9f0
1 file changed
.github/workflows/deploy.yml
@@ -9,6 +9,12 @@ on:
9
- main
10
- next
11
workflow_dispatch:
12
+ inputs:
13
+ production:
14
+ description: 'Deploy to production'
15
+ required: false
16
+ default: true
17
+ type: boolean
18
19
env:
20
PASSWORD: ${{ secrets.PASSWORD }}
@@ -74,7 +80,7 @@ jobs:
74
80
75
81
VITE_WEB_WALLET_URL: ${{ vars.VITE_WEB_WALLET_URL }}
76
82
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
78
84
vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
79
85
DEPLOY_URL=$(vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} --archive=tgz --yes)
86
else
0 commit comments