Skip to content

Commit

Permalink
actually fix linux build assets upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaphasilor committed Sep 18, 2024
1 parent 7da719a commit 14e38f8
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/upload-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,22 @@ jobs:
&& cp assets/finamp.desktop.m4 build/linux/x64/release/ \
&& cp assets/com.unicornsonlsd.finamp.metainfo.xml build/linux/x64/release/
# archive bundle and generate checksum
- run: GITHUB_REF="${{ github.ref }}"
- run: VERSION="${ref#refs/tags/}"
- run: |
tar -czf finamp-${VERSION}-linux-release.tar.gz --directory build/linux/x64/release/ bundle icons finamp.desktop.m4 com.unicornsonlsd.finamp.metainfo.xml \
&& sha256sum finamp-${VERSION}-linux-release.tar.gz > finamp-${VERSION}-linux-release.tar.gz.sha256sum
tar -czf finamp-${{ github.ref_name }}-linux-release.tar.gz --directory build/linux/x64/release/ bundle icons finamp.desktop.m4 com.unicornsonlsd.finamp.metainfo.xml \
&& sha256sum finamp-${{ github.ref_name }}-linux-release.tar.gz > finamp-${{ github.ref_name }}-linux-release.tar.gz.sha256sum
- uses: actions/upload-artifact@v4
with:
name: finamp-${VERSION}-linux-release.tar.gz
path: finamp-${VERSION}-linux-release.tar.gz
name: finamp-${{ github.ref_name }}-linux-release.tar.gz
path: finamp-${{ github.ref_name }}-linux-release.tar.gz
compression-level: 0 # no compression
- uses: actions/upload-artifact@v4
with:
name: finamp-${VERSION}-linux-release.tar.gz.sha256sum
path: finamp-${VERSION}-linux-release.tar.gz.sha256sum
name: finamp-${{ github.ref_name }}-linux-release.tar.gz.sha256sum
path: finamp-${{ github.ref_name }}-linux-release.tar.gz.sha256sum
compression-level: 0 # no compression
- name: Upload release archive
uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["./finamp-${VERSION}-linux-release.tar.gz", "./finamp-${VERSION}-linux-release.tar.gz.sha256sum"]'
asset_paths: '["./finamp-${{ github.ref_name }}-linux-release.tar.gz", "./finamp-${{ github.ref_name }}-linux-release.tar.gz.sha256sum"]'

0 comments on commit 14e38f8

Please sign in to comment.