File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,16 @@ jobs:
1313 env :
1414 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
1515 - run : npm ci && npm run pkg
16+ if : startsWith(github.ref, 'refs/tags/v')
1617 - uses : actions/create-release@v1
18+ if : startsWith(github.ref, 'refs/tags/v')
1719 env :
1820 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1921 with :
2022 tag_name : ${{ github.ref }}
2123 release_name : Release ${{ github.ref }}
2224 - uses : actions/upload-release-asset@v1
25+ if : startsWith(github.ref, 'refs/tags/v')
2326 env :
2427 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2528 with :
2831 asset_name : obs-cli-macos
2932 asset_content_type : application/octet-stream
3033 - uses : actions/upload-release-asset@v1
34+ if : startsWith(github.ref, 'refs/tags/v')
3135 env :
3236 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3337 with :
3640 asset_name : obs-cli-linux
3741 asset_content_type : application/octet-stream
3842 - uses : actions/upload-release-asset@v1
43+ if : startsWith(github.ref, 'refs/tags/v')
3944 env :
4045 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4146 with :
You can’t perform that action at this time.
0 commit comments