Skip to content

Commit af3b68d

Browse files
committed
Add proper release version naming
1 parent b597c72 commit af3b68d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
- name: Get short SHA
2222
id: slug
2323
run: echo "sha8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT
24+
- name: Get release version
25+
id: tagversion
26+
if: startsWith(github.ref, 'refs/tags/')
27+
run: fullref="${{ github.ref }}"; tagversion=${fullref#"refs/tags/"}; echo "tagversion=${tagversion}" >> $GITHUB_OUTPUT
2428
- name: Build firmware image
2529
run: |
2630
make COMPRESSION_RATIO=9
@@ -74,6 +78,6 @@ jobs:
7478
with:
7579
upload_url: ${{ steps.create_release.outputs.upload_url }}
7680
asset_path: ./superfw.zip
77-
asset_name: superfw.zip
81+
asset_name: superfw-${{ steps.tagversion.outputs.tagversion }}.zip
7882
asset_content_type: application/zip
7983

0 commit comments

Comments
 (0)