Skip to content

Commit 73407f7

Browse files
committed
ci: add upload artifact, attest-build-provenance
Signed-off-by: Rafael Passos <rafael@rcpassos.me>
1 parent c325bbd commit 73407f7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ jobs:
7575
zip protonup-rs-linux-amd64.zip protonup-rs
7676
tar -czvf protonup-rs-linux-amd64.tar.gz protonup-rs
7777
78+
- name: Upload packages as GH artifacts
79+
uses: actions/upload-artifact@v4
80+
with:
81+
name: packages
82+
path: 'target/release/protonup-rs**.{gz,zip,rpm,deb}'
83+
retention-days: 7
84+
7885
- name: Upload Zipped,Tar gzed, DEB and RPM binaries to release
7986
uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd #v2.9.0
8087
with:
@@ -126,6 +133,14 @@ jobs:
126133
run: |
127134
echo "hashes=$(sha256sum $(echo *.zip *.deb *.rpm *.gz ) | base64 -w0)" >> "$GITHUB_OUTPUT"
128135
136+
- uses: actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # v2.2.3
137+
with:
138+
subject-path: |
139+
'target/release/protonup-rs*.gz
140+
'target/release/protonup-rs*.zip
141+
'target/release/protonup-rs*.rpm
142+
'target/release/protonup-rs*.deb
143+
129144
provenance:
130145
needs: [release]
131146
permissions:

0 commit comments

Comments
 (0)