check prerelease when releasing

This commit is contained in:
Pig Fang 2022-02-05 22:14:08 +08:00
parent 7de23b6652
commit b42f87eaa2
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2

View File

@ -24,6 +24,7 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') }}
- name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}