File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
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
+ artifact-id : ${{ steps.upload-artifact.outputs.artifact-id }}
8
10
steps :
9
11
- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
12
+ with :
13
+ persist-credentials : false
10
14
- uses : astral-sh/setup-uv@d9e0f98d3fc6adb07d1e3d37f3043649ddad06a1 # v6.5.0
11
15
with :
12
16
enable-cache : true
@@ -17,17 +21,23 @@ jobs:
17
21
- run : echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
18
22
- run : uv build
19
23
- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
24
+ id : upload-artifact
20
25
with :
21
- path : ./dist
26
+ name : dist
27
+ path : dist/
28
+ if-no-files-found : error
22
29
create-release :
23
30
needs : [build]
24
31
runs-on : ubuntu-latest
25
32
permissions :
26
33
contents : write
27
34
steps :
28
35
- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
36
+ with :
37
+ artifact-ids : ${{ needs.build.outputs.artifact-id }}
38
+ path : dist/
29
39
- name : create release
30
- run : gh release create --draft --repo ${{ github.repository }} ${{ github.ref_name }} artifact /*
40
+ run : gh release create --draft --repo ${{ github.repository }} ${{ github.ref_name }} dist /*
31
41
env :
32
42
GH_TOKEN : ${{ github.token }}
33
43
publish-pypi :
40
50
id-token : write
41
51
steps :
42
52
- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
53
+ with :
54
+ artifact-ids : ${{ needs.build.outputs.artifact-id }}
55
+ path : dist/
43
56
- uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
44
57
with :
45
- packages-dir : artifact/
58
+ packages-dir : " dist/ "
You can’t perform that action at this time.
0 commit comments