6969 # move all artifacts to the release folder
7070 mv *.deb *.rpm ../release/
7171
72+ - name : Compress binary release artifacts
73+ run : |
74+ cd ./target/release
75+ zip protonup-rs-linux-amd64.zip protonup-rs
76+ tar -czvf protonup-rs-linux-amd64.tar.gz protonup-rs
77+
7278 - name : Upload Zipped,Tar gzed, DEB and RPM binaries to release
7379 uses : svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2.9.0
7480 with :
8995 file_glob : true
9096 draft : true
9197
92- - name : Compress binary release artifacts
93- run : |
94- cd ./target/release
95- zip protonup-rs-linux-amd64.zip protonup-rs
96- tar -czvf protonup-rs-linux-amd64.tar.gz protonup-rs
97-
9898 - name : Run cargo publish binary
9999 env :
100100 # This can help you tagging the github repository
@@ -124,9 +124,7 @@ jobs:
124124 - name : Generate hashes
125125 id : hash
126126 run : |
127- set -euo pipefail
128- shopt -s globstar extglob
129- echo "hashes=$(sha256sum $(ls protonup-rs**.@(zip|deb|rpm|gz) ) | base64 -w0)" >> "$GITHUB_OUTPUT"
127+ echo "hashes=$(sha256sum $(echo *.zip *.deb *.rpm *.gz ) | base64 -w0)" >> "$GITHUB_OUTPUT"
130128
131129 provenance :
132130 needs : [release]
@@ -136,6 +134,6 @@ jobs:
136134 contents : write # To add assets to a release.
137135 uses : slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@f7dd8c54c2067bafc12ca7a55595d5ee9b75204a # v2.1.0
138136 with :
139- base64-subjects : " ${{ needs.build .outputs.hashes }}"
137+ base64-subjects : " ${{ needs.release .outputs.hashes }}"
140138 upload-assets : true
141- upload-tag-name : ${{ needs.build .outputs.published_version }}
139+ upload-tag-name : ${{ needs.release .outputs.published_version }}
0 commit comments