Skip to content

Commit

Permalink
chore: release: add tag name in AppImage filename
Browse files Browse the repository at this point in the history
  • Loading branch information
speed47 committed Oct 15, 2023
1 parent 0c88535 commit 4e908a3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,12 @@ jobs:
- name: get appimage name
id: dist
run: |
archive=$(find /tmp/dist -type f -name "QPx*.AppImage")
echo "archive=$archive" >> $GITHUB_OUTPUT
echo "appimage is <$archive>"
archiveold=$(find /tmp/dist -type f -name "QPx*.AppImage")
tagname=$(echo "${{ github.ref }}" | grep -Eo '[^/]+$')
archivenew=$(echo "$archiveold" | sed -re "s/QPxTool-/QPxTool-$tagname-/")
mv -v "$archiveold" "$archivenew"
echo "archive=$archivenew" >> $GITHUB_OUTPUT
echo "appimage is <$archivenew>"
- name: Release
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit 4e908a3

Please sign in to comment.