From b42f87eaa202401b03a9992a624a611f767833d1 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sat, 5 Feb 2022 22:14:08 +0800 Subject: [PATCH] check prerelease when releasing --- .github/workflows/Release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 343fc854..93114b70 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -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\//}