File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 44 workflow_dispatch :
55 inputs :
66 target :
7- description : ' Which store to deploy to? '
7+ description : ' Select the store to deploy to'
88 required : true
99 default : ' all'
1010 type : choice
1111 options :
1212 - chrome
1313 - firefox
1414 - all
15- testMode :
16- description : ' Run in test mode without publishing? '
15+ dryrun :
16+ description : ' Run in dry mode without publishing'
1717 required : true
1818 default : false
1919 type : boolean
2929jobs :
3030 build-and-deploy :
3131 runs-on : ubuntu-latest
32-
32+ if : ${{github.ref_type == 'tag' }}
3333 strategy :
3434 fail-fast : false
3535 matrix :
3636 browser : [chrome, firefox]
3737
3838 steps :
39- - uses : actions/checkout@v4
39+ - uses : actions/checkout@v6
40+ with :
41+ fetch-depth : 0
42+ ref : ${{ github.ref_name }}
4043
4144 - uses : actions/setup-node@v4
4245 with :
5053 run : yarn build:${{ matrix.browser }}
5154
5255 - name : ' ⬆️ Upload to Chrome Web Store'
53- if : ${{ (github.event.inputs.target == 'all' || github.event.inputs.target == 'chrome') && matrix.browser == 'chrome' && github.event.inputs.testMode == 'false' }}
56+ if : ${{ (github.event.inputs.target == 'all' || github.event.inputs.target == 'chrome') && matrix.browser == 'chrome' && github.event.inputs.dryrun == 'false' }}
5457 run : >
5558 npx chrome-webstore-upload-cli@3 upload
5659 --source chrome_extension.zip
6366 REFRESH_TOKEN : ${{ secrets.CHROME_EXTENSION_REFRESH_TOKEN }}
6467
6568 - name : ' ⬆️ Upload to Firefox Add-on Store'
66- if : ${{ (github.event.inputs.target == 'all' || github.event.inputs.target == 'firefox') && matrix.browser == 'firefox' && github.event.inputs.testMode == 'false' }}
69+ if : ${{ (github.event.inputs.target == 'all' || github.event.inputs.target == 'firefox') && matrix.browser == 'firefox' && github.event.inputs.dryrun == 'false' }}
6770 uses : wdzeng/firefox-addon@v1
6871 with :
6972 jwt-issuer : ${{ secrets.WEB_EXT_API_KEY }}
You can’t perform that action at this time.
0 commit comments