File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 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
1319env :
1420 PASSWORD : ${{ secrets.PASSWORD }}
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
You can’t perform that action at this time.
0 commit comments