55jobs :
66 build :
77 runs-on : ubuntu-latest
8+ outputs :
9+ artifact-id : ${{ steps.upload-artifact.outputs.artifact-id }}
810 steps :
911 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
10- - uses : astral-sh/setup-uv@e06108dd0aef18192324c70427afc47652e63a82 # v7.5.0
12+ with :
13+ persist-credentials : false
14+ - uses : astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
1115 with :
1216 enable-cache : true
1317 prune-cache : false
@@ -16,30 +20,39 @@ jobs:
1620 python-version-file : pyproject.toml
1721 - run : echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
1822 - run : uv build
19- - uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
23+ - uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
24+ id : upload-artifact
2025 with :
21- path : ./dist
26+ name : dist
27+ path : dist/
28+ if-no-files-found : error
2229 create-release :
2330 needs : [build]
2431 runs-on : ubuntu-latest
2532 permissions :
2633 contents : write
2734 steps :
28- - uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
35+ - uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
36+ with :
37+ artifact-ids : ${{ needs.build.outputs.artifact-id }}
38+ path : dist/
2939 - 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 /*
3141 env :
3242 GH_TOKEN : ${{ github.token }}
3343 publish-pypi :
3444 needs : [build]
3545 environment :
3646 name : publish
37- url : https://pypi.org/project/click /${{ github.ref_name }}
47+ url : https://pypi.org/project/Click /${{ github.ref_name }}
3848 runs-on : ubuntu-latest
3949 permissions :
4050 id-token : write
4151 steps :
42- - uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
52+ - uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
53+ with :
54+ artifact-ids : ${{ needs.build.outputs.artifact-id }}
55+ path : dist/
4356 - uses : pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
4457 with :
45- packages-dir : artifact/
58+ packages-dir : " dist/ "
0 commit comments