File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Attest existing release assets ✅
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ tag :
7
+ description : Git tag of the existing release (e.g., v0.25.0)
8
+ required : true
9
+ type : string
10
+
11
+ permissions :
12
+ contents : write
13
+ id-token : write
14
+ attestations : write
15
+
16
+ jobs :
17
+ attest :
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - name : Prepare dist directory
21
+ run : mkdir -p dist
22
+
23
+ - name : Download assets from GitHub Release
24
+ env :
25
+ GITHUB_TOKEN : ${{ github.token }}
26
+ run : >-
27
+ gh release download
28
+ '${{ inputs.tag }}'
29
+ --repo '${{ github.repository }}'
30
+ -D dist/
31
+ -p '*.whl' -p '*.tar.gz'
32
+
33
+ - name : List downloaded files
34
+ run : ls -lah dist || true
35
+
36
+ - name : Generate build provenance attestations
37
+ uses : actions/attest-build-provenance@v1
38
+ with :
39
+ subject-path : |
40
+ dist/*.tar.gz
41
+ dist/*.whl
You can’t perform that action at this time.
0 commit comments