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 6
6
jobs :
7
7
build :
8
8
runs-on : ubuntu-latest
9
- outputs :
10
- hash : ${{ steps.hash.outputs.hash }}
11
9
steps :
12
10
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13
11
- uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
@@ -19,27 +17,11 @@ jobs:
19
17
# Use the commit date instead of the current date during the build.
20
18
- run : echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
21
19
- run : python -m build
22
- # Generate hashes used for provenance.
23
- - name : generate hash
24
- id : hash
25
- run : cd dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
26
20
- uses : actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
27
21
with :
28
22
path : ./dist
29
- provenance :
30
- needs : [build]
31
- permissions :
32
- actions : read
33
- id-token : write
34
- contents : write
35
- # Can't pin with hash due to how this workflow works.
36
- uses : slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0
37
- with :
38
- base64-subjects : ${{ needs.build.outputs.hash }}
39
23
create-release :
40
- # Upload the sdist, wheels, and provenance to a GitHub release. They remain
41
- # available as build artifacts for a while as well.
42
- needs : [provenance]
24
+ needs : [build]
43
25
runs-on : ubuntu-latest
44
26
permissions :
45
27
contents : write
@@ -48,12 +30,11 @@ jobs:
48
30
- name : create release
49
31
run : >
50
32
gh release create --draft --repo ${{ github.repository }}
51
- ${{ github.ref_name }}
52
- *.intoto.jsonl/* artifact/*
33
+ ${{ github.ref_name }} artifact/*
53
34
env :
54
35
GH_TOKEN : ${{ github.token }}
55
36
publish-pypi :
56
- needs : [provenance ]
37
+ needs : [build ]
57
38
# Wait for approval before attempting to upload to PyPI. This allows reviewing the
58
39
# files in the draft release.
59
40
environment :
You can’t perform that action at this time.
0 commit comments