Commit 5a57d5e 1 parent 2398f56 commit 5a57d5e Copy full SHA for 5a57d5e
File tree 1 file changed +38
-0
lines changed
1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Test attestation
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ deploy :
8
+ name : Test attestation
9
+ runs-on : ubuntu-latest
10
+ permissions :
11
+ attestations : write
12
+ contents : read
13
+ id-token : write
14
+ steps :
15
+ - name : Checkout code
16
+ uses : actions/checkout@master
17
+
18
+ - name : Get tag
19
+ id : tag
20
+ run : echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
21
+
22
+ - name : Build project
23
+ run : git archive -o /tmp/${{ github.event.repository.name }}-${{ steps.tag.outputs.tag }}.zip --prefix=${{ github.event.repository.name }}/ ${{ steps.tag.outputs.tag }}
24
+
25
+ - name : Create Release
26
+ id : create_release
27
+ uses : softprops/action-gh-release@v2
28
+ env :
29
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
+ with :
31
+ files : /tmp/${{ github.event.repository.name }}-${{ steps.tag.outputs.tag }}.zip
32
+
33
+ - name : Generate build provenance attestation
34
+ uses :
johnbillion/[email protected]
35
+ with :
36
+ zip-path : ${{ steps.deploy.outputs.zip-path }}
37
+ zip-url : " https://github.com/${{ github.event.repository.full_name }}/${{ github.event.repository.name }}-${{ steps.tag.outputs.tag }}.zip"
38
+ dry-run : true
You can’t perform that action at this time.
0 commit comments