This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit 258025f committed Sep 3, 2024 · 8 / 16
1 parent 62d644d commit 258025f Copy full SHA for 258025f
File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,15 @@ jobs:
154
154
run : |
155
155
rustup target add aarch64-pc-windows-msvc
156
156
157
+ - name : Release Type
158
+ id : release-type
159
+ run : |
160
+ if [[ ${{ github.ref }} =~ ^refs/tags/v[0-9]+[.][0-9]+[.][0-9]+$ ]]; then
161
+ echo value=release >> $GITHUB_OUTPUT
162
+ else
163
+ echo value=prerelease >> $GITHUB_OUTPUT
164
+ fi
165
+
157
166
- name : Package
158
167
id : package
159
168
if : startsWith(github.ref, 'refs/tags/')
@@ -170,6 +179,6 @@ jobs:
170
179
with :
171
180
draft : false
172
181
files : ${{steps.package.outputs.archive}}
173
- prerelease : ${{ ! startsWith(github.ref, 'refs/tags/v') }}
182
+ prerelease : ${{ steps.release-type.outputs.value == 'prerelease' }}
174
183
env :
175
184
GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments