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 5
5
tags :
6
6
- ' v*'
7
7
release :
8
- types : [created, edited ]
8
+ types : [published ]
9
9
10
10
jobs :
11
11
build-and-publish :
12
12
name : Build and publish
13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
- uses : actions/checkout@v3
16
+ with :
17
+ ref : ${{ github.event.release.tag_name || github.ref }}
16
18
17
19
- name : Setup Rust
18
20
uses : actions-rs/toolchain@v1
@@ -150,7 +152,7 @@ jobs:
150
152
name : Create GitHub Release
151
153
runs-on : ubuntu-latest
152
154
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
154
156
steps :
155
157
- uses : actions/checkout@v3
156
158
You can’t perform that action at this time.
0 commit comments