Skip to content

Commit c15c176

Browse files
author
evgenii
committed
CI: final Trusted-Publishing workflow (PyPI ready)
1 parent 6360900 commit c15c176

File tree

1 file changed

+12
-26
lines changed

1 file changed

+12
-26
lines changed

.github/workflows/wheels.yml

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
# Note: M1 images on Github Actions start from macOS 14
101101
- [macos-14, macosx_arm64]
102102
- [windows-2022, win_amd64]
103-
# - [windows-11-arm, win_arm64]
103+
- [windows-11-arm, win_arm64]
104104
# TODO: support PyPy?
105105
python: [["cp310", "3.10"], ["cp311", "3.11"], ["cp312", "3.12"], ["cp313", "3.13"], ["cp313t", "3.13"]]
106106
include:
@@ -110,13 +110,12 @@ jobs:
110110
- buildplat: [ubuntu-24.04, pyodide_wasm32]
111111
python: ["cp312", "3.12"]
112112
cibw_build_frontend: 'build'
113-
# TEMP: exclude block no longer needed when win_arm64 is commented
114-
# exclude:
115-
# - buildplat: [windows-11-arm, win_arm64]
116-
# python: ["cp310", "3.10"]
117-
# # BackendUnavailable: Cannot import 'mesonpy'
118-
# - buildplat: [windows-11-arm, win_arm64]
119-
# python: ["cp313t", "3.13"]
113+
exclude:
114+
- buildplat: [windows-11-arm, win_arm64]
115+
python: ["cp310", "3.10"]
116+
# BackendUnavailable: Cannot import 'mesonpy'
117+
- buildplat: [windows-11-arm, win_arm64]
118+
python: ["cp313t", "3.13"]
120119

121120
env:
122121
IS_PUSH: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
@@ -228,12 +227,8 @@ jobs:
228227
- build_wheels
229228
runs-on: ubuntu-latest
230229

231-
# ---------- current TEST settings ----------
232230
environment:
233-
name: testpypi # keep while testing
234-
# ---------- FINAL settings (uncomment) ----------
235-
# environment:
236-
# name: pypi # ← enable for PyPI
231+
name: pypi # ← enable for PyPI
237232

238233
permissions:
239234
id-token: write # OIDC token for Trusted Publishing
@@ -255,18 +250,9 @@ jobs:
255250
-name '*.whl' -exec mv {} upload/ \;
256251
find dist -name '*.tar.gz' -exec mv {} upload/ \;
257252
258-
# 3. Publish to TestPyPI using Trusted Publishing
259-
- name: Publish to TestPyPI (Trusted Publishing)
253+
# 3. Publish to PyPI using Trusted Publishing
254+
- name: Publish to PyPI (Trusted Publishing) # ← enable for PyPI
260255
uses: pypa/gh-action-pypi-publish@release/v1
261256
with:
262-
repository-url: https://test.pypi.org/legacy/ # test endpoint
263-
packages-dir: upload
264-
skip-existing: true
265-
266-
# ---------- FINAL publish block (uncomment, remove test one above) ----------
267-
# - name: Publish to PyPI (Trusted Publishing) # ← enable for PyPI
268-
# uses: pypa/gh-action-pypi-publish@release/v1
269-
# with:
270-
# repository-url: https://upload.pypi.org/legacy/ # ← production endpoint
271-
# packages-dir: upload
272-
# # skip-existing: true # ← remove for production
257+
repository-url: https://upload.pypi.org/legacy/ # ← production endpoint
258+
packages-dir: upload

0 commit comments

Comments
 (0)