Skip to content

Commit 77862e8

Browse files
validcubeoSumAtrIX
andauthored
ci: Attest release artifacts (#367)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
1 parent f29eda8 commit 77862e8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
name: Release
1313
permissions:
1414
contents: write
15+
id-token: write
16+
attestations: write
1517
runs-on: ubuntu-latest
1618
steps:
1719
- name: Checkout
@@ -47,6 +49,14 @@ jobs:
4749
fingerprint: ${{ vars.GPG_FINGERPRINT }}
4850

4951
- name: Release
52+
uses: cycjimmy/semantic-release-action@v4
53+
id: release
5054
env:
5155
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52-
run: npm exec semantic-release
56+
57+
- name: Attest
58+
if: steps.release.outputs.new_release_published == 'true'
59+
uses: actions/attest-build-provenance@v2
60+
with:
61+
subject-name: 'ReVanced CLI ${{ steps.release.outputs.new_release_git_tag }}'
62+
subject-path: build/libs/revanced-cli*.jar

0 commit comments

Comments
 (0)