File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 55 tags :
66 - ' v*'
77 release :
8- types : [created, edited ]
8+ types : [published ]
99
1010jobs :
1111 build-and-publish :
1212 name : Build and publish
1313 runs-on : ubuntu-latest
1414 steps :
1515 - uses : actions/checkout@v3
16+ with :
17+ ref : ${{ github.event.release.tag_name || github.ref }}
1618
1719 - name : Setup Rust
1820 uses : actions-rs/toolchain@v1
@@ -150,7 +152,7 @@ jobs:
150152 name : Create GitHub Release
151153 runs-on : ubuntu-latest
152154 needs : build-binaries
153- if : github.event_name == 'push' # Only create release when triggered by tag push
155+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') # Only create release when triggered by tag push
154156 steps :
155157 - uses : actions/checkout@v3
156158
You can’t perform that action at this time.
0 commit comments