Skip to content

Commit 6c08e55

Browse files
authored
Merge pull request #11 from koxudaxi/fix/publish-python-bootstrap-retry
fix: add skip-existing option for PyPI publishing and setup uv environment
2 parents 3b9a506 + c66bf2a commit 6c08e55

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/publish-python.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ jobs:
198198
- name: Publish to PyPI
199199
if: ${{ github.event.inputs.target == 'all' || (github.event.inputs.target == 'bootstrap-1' && matrix.publish_in_bootstrap_1) || (github.event.inputs.target == 'bootstrap-2' && matrix.publish_in_bootstrap_2) }}
200200
uses: pypa/gh-action-pypi-publish@release/v1
201+
with:
202+
skip-existing: true
201203

202204
publish-bindings:
203205
runs-on: ubuntu-latest
@@ -210,6 +212,12 @@ jobs:
210212
permissions:
211213
id-token: write
212214
steps:
215+
- name: Set up uv
216+
uses: astral-sh/setup-uv@v7
217+
with:
218+
enable-cache: true
219+
python-version: "3.14"
220+
213221
- name: Download wheel artifacts
214222
uses: actions/download-artifact@v4
215223
with:
@@ -228,3 +236,5 @@ jobs:
228236

229237
- name: Publish to PyPI
230238
uses: pypa/gh-action-pypi-publish@release/v1
239+
with:
240+
skip-existing: true

0 commit comments

Comments
 (0)