File tree Expand file tree Collapse file tree 1 file changed +3
-22
lines changed
Expand file tree Collapse file tree 1 file changed +3
-22
lines changed Original file line number Diff line number Diff line change 66jobs :
77 build :
88 runs-on : ubuntu-latest
9- outputs :
10- hash : ${{ steps.hash.outputs.hash }}
119 steps :
1210 - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
1311 - uses : actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
@@ -17,27 +15,11 @@ jobs:
1715 # Use the commit date instead of the current date during the build.
1816 - run : echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
1917 - run : python -m build
20- # Generate hashes used for provenance.
21- - name : generate hash
22- id : hash
23- run : cd dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
2418 - uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
2519 with :
2620 path : ./dist
27- provenance :
28- needs : ['build']
29- permissions :
30- actions : read
31- id-token : write
32- contents : write
33- # Can't pin with hash due to how this workflow works.
34- uses :
slsa-framework/slsa-github-generator/.github/workflows/[email protected] 35- with :
36- base64-subjects : ${{ needs.build.outputs.hash }}
3721 create-release :
38- # Upload the sdist, wheels, and provenance to a GitHub release. They remain
39- # available as build artifacts for a while as well.
40- needs : ['provenance']
22+ needs : [build]
4123 runs-on : ubuntu-latest
4224 permissions :
4325 contents : write
@@ -46,12 +28,11 @@ jobs:
4628 - name : create release
4729 run : >
4830 gh release create --draft --repo ${{ github.repository }}
49- ${{ github.ref_name }}
50- *.intoto.jsonl/* artifact/*
31+ ${{ github.ref_name }} artifact/*
5132 env :
5233 GH_TOKEN : ${{ github.token }}
5334 publish-pypi :
54- needs : ['provenance' ]
35+ needs : [build ]
5536 # Wait for approval before attempting to upload to PyPI. This allows reviewing the
5637 # files in the draft release.
5738 environment : ' publish'
You can’t perform that action at this time.
0 commit comments