-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
actually fix linux build assets upload
- Loading branch information
1 parent
7da719a
commit 14e38f8
Showing
1 changed file
with
7 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"]' |