File tree Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Original file line number Diff line number Diff line change 5
5
jobs :
6
6
build :
7
7
runs-on : ubuntu-latest
8
- outputs :
9
- hash : ${{ steps.hash.outputs.hash }}
10
8
steps :
11
9
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
12
10
- uses : astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
@@ -18,24 +16,11 @@ jobs:
18
16
python-version-file : pyproject.toml
19
17
- run : echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
20
18
- run : uv build
21
- - name : generate hash
22
- id : hash
23
- run : cd dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
24
19
- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
25
20
with :
26
21
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 }}
37
22
create-release :
38
- needs : [provenance ]
23
+ needs : [build ]
39
24
runs-on : ubuntu-latest
40
25
permissions :
41
26
contents : write
@@ -44,12 +29,11 @@ jobs:
44
29
- name : create release
45
30
run : >
46
31
gh release create --draft --repo ${{ github.repository }}
47
- ${{ github.ref_name }}
48
- *.intoto.jsonl/* artifact/*
32
+ ${{ github.ref_name }} artifact/*
49
33
env :
50
34
GH_TOKEN : ${{ github.token }}
51
35
publish-pypi :
52
- needs : [provenance ]
36
+ needs : [build ]
53
37
environment :
54
38
name : publish
55
39
url : https://pypi.org/project/flask-orjson/${{ github.ref_name }}
You can’t perform that action at this time.
0 commit comments