@@ -2,6 +2,10 @@ name: Publish
22on :
33 push :
44 tags : ['*']
5+ permissions : {}
6+ concurrency :
7+ group : publish-${{ github.event.push.ref }}
8+ cancel-in-progress : true
59jobs :
610 build :
711 runs-on : ubuntu-latest
@@ -11,16 +15,16 @@ jobs:
1115 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1216 with :
1317 persist-credentials : false
14- - uses : astral-sh/setup-uv@803947b9bd8e9f986429fa0c5a41c367cd732b41 # v7.2 .1
18+ - uses : astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3 .1
1519 with :
16- enable-cache : true
20+ enable-cache : false
1721 prune-cache : false
1822 - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
1923 with :
2024 python-version-file : pyproject.toml
2125 - run : echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
2226 - run : uv build
23- - uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6 .0.0
27+ - uses : actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7 .0.0
2428 id : upload-artifact
2529 with :
2630 name : dist
@@ -32,12 +36,12 @@ jobs:
3236 permissions :
3337 contents : write
3438 steps :
35- - uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7 .0.0
39+ - uses : actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8 .0.0
3640 with :
3741 artifact-ids : ${{ needs.build.outputs.artifact-id }}
3842 path : dist/
3943 - name : create release
40- run : gh release create --draft --repo ${{ github.repository }} ${{ github.ref_name } } dist/*
44+ run : gh release create --draft --repo ${GITHUB_REPOSITORY} ${GITHUB_REF_NAME } dist/*
4145 env :
4246 GH_TOKEN : ${{ github.token }}
4347 publish-pypi :
4953 permissions :
5054 id-token : write
5155 steps :
52- - uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7 .0.0
56+ - uses : actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8 .0.0
5357 with :
5458 artifact-ids : ${{ needs.build.outputs.artifact-id }}
5559 path : dist/
0 commit comments