Skip to content

Commit b6295c0

Browse files
committed
.
1 parent baaaabe commit b6295c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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:
@@ -28,6 +31,7 @@ jobs:
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:
@@ -36,6 +40,7 @@ jobs:
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:

0 commit comments

Comments
 (0)