1 parent c2dce53 commit fbb54d2Copy full SHA for fbb54d2
1 file changed
.github/workflows/release.yml
@@ -98,6 +98,15 @@ jobs:
98
with:
99
path: artifacts
100
101
+ - name: Detect prerelease
102
+ id: prerelease
103
+ run: |
104
+ if [[ "${GITHUB_REF_NAME}" =~ (alpha|beta|rc) ]]; then
105
+ echo "value=true" >> "$GITHUB_OUTPUT"
106
+ else
107
+ echo "value=false" >> "$GITHUB_OUTPUT"
108
+ fi
109
+
110
- name: Generate Changelog
111
id: github_release
112
uses: mikepenz/release-changelog-builder@v6
@@ -135,4 +144,5 @@ jobs:
135
144
uses: softprops/action-gh-release@v3
136
145
137
146
body: ${{ steps.github_release.outputs.changelog }}
147
+ prerelease: ${{ steps.prerelease.outputs.value == 'true' }}
138
148
files: artifacts/**/*
0 commit comments