dx: better release procedure
Massimo Melina committed
May 6, 2026 at 00:29 UTC
d3a1ebce50837426d116b376613480a1f7a05260
1 file changed
+11
-1
.github/workflows/release-assets.yml
+11
-1
@@ -289,11 +289,21 @@ jobs:
289
merge-multiple: true
290
path: release-assets
291
292
+ - name: Normalize release title
293
+ id: release_title
294
+ shell: bash
295
+ run: |
296
+ # keep the release tag untouched, but strip the optional leading v from the display title
297
+ tag='${{ inputs.tag }}'
298
+ echo "name=${tag#v}" >> "$GITHUB_OUTPUT"
299
+
300
- name: Create draft release
301
uses: softprops/action-gh-release@v2
302
with:
303
tag_name: ${{ inputs.tag }}
296
- name: ${{ inputs.tag }}
304
+ name: ${{ steps.release_title.outputs.name }}
305
+ # release tags with a dash are treated as pre-releases so beta-style builds stay separated from stable ones
306
+ prerelease: ${{ contains(inputs.tag, '-') }}
307
target_commitish: ${{ inputs.commitish || github.event.repository.default_branch }}
308
draft: true
309
files: release-assets/*.zip