From 6db338bf256de75193c237345be7b65676888bb6 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Sat, 19 Aug 2023 02:32:13 -0700 Subject: [PATCH] set prerelease flag appropriately for github releases --- .github/workflows/github-release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml index 5b4565511a..e455ea34db 100644 --- a/.github/workflows/github-release.yml +++ b/.github/workflows/github-release.yml @@ -37,7 +37,10 @@ jobs: submodules: true - name: Get tag id: gettag - run: echo name=$(git describe --tags --abbrev=0 --exact-match) >> $GITHUB_OUTPUT + run: | + TAG=$(git describe --tags --abbrev=0 --exact-match) + echo name="$TAG" >> $GITHUB_OUTPUT + echo type=$(echo "$TAG" | egrep '-r[0-9]+$' && echo "release" || echo "prerelease") >> $GITHUB_OUTPUT - name: Generate release text run: | python docs/gen_changelog.py -a @@ -73,5 +76,6 @@ jobs: omitDraftDuringUpdate: true omitNameDuringUpdate: true omitPrereleaseDuringUpdate: true + prerelease: ${{ steps.gettag.outputs.type == 'prerelease' }} replacesArtifacts: true tag: ${{ steps.gettag.outputs.name }}