Skip to content

Commit 4ce161b

Browse files
committed
add version dmg
1 parent 59509a4 commit 4ce161b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
5454
- name: Locate App & Create DMG
5555
run: |
56+
VERSION="${GITHUB_REF_NAME#v}"
57+
DMG_NAME="SpeakType-${VERSION}.dmg"
5658
# Find the app anywhere in the build folder
5759
APP_PATH=$(find build -name "speaktype.app" | head -n 1)
5860
@@ -82,11 +84,11 @@ jobs:
8284
--icon "speaktype.app" 180 170 \
8385
--hide-extension "speaktype.app" \
8486
--app-drop-link 480 170 \
85-
"SpeakType.dmg" \
87+
"$DMG_NAME" \
8688
"$APP_PATH"
8789
8890
- name: Upload Release Asset
8991
uses: softprops/action-gh-release@v2
9092
with:
91-
files: SpeakType.dmg
93+
files: SpeakType-${{ github.ref_name#v }}.dmg
9294
generate_release_notes: true

0 commit comments

Comments
 (0)