Skip to content

Commit dbd0f8c

Browse files
committed
only upload binaries for releases
1 parent 6695e28 commit dbd0f8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,14 @@ jobs:
3535
run: yarn install
3636

3737
- name: Uploading
38+
if: ${{github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')}}
3839
uses: actions/upload-artifact@v3
3940
with:
4041
name: bin-${{runner.os}}-${{runner.arch}}
4142
path: bin/**
4243

4344
Release:
44-
if: ${{github.event_name == 'tag'}}
45+
if: ${{github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')}}
4546
needs: Build
4647
runs-on: ubuntu-latest
4748
steps:

0 commit comments

Comments
 (0)