Skip to content

Commit

Permalink
set prerelease flag appropriately for github releases
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Aug 19, 2023
1 parent a1d6098 commit 6db338b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -73,5 +76,6 @@ jobs:
omitDraftDuringUpdate: true
omitNameDuringUpdate: true
omitPrereleaseDuringUpdate: true
prerelease: ${{ steps.gettag.outputs.type == 'prerelease' }}
replacesArtifacts: true
tag: ${{ steps.gettag.outputs.name }}

0 comments on commit 6db338b

Please sign in to comment.