Skip to content

Commit 0332486

Browse files
author
evgenii
committed
Docs & CI: add publish-comment header; final PyPI configuration
1 parent c15c176 commit 0332486

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/wheels.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ jobs:
220220
set_upload_vars
221221
upload_wheels
222222
223+
################################################
224+
# Publish Wheels and Source Distribution to PyPI
225+
################################################
223226
publish:
224227
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
225228
needs:
@@ -228,7 +231,7 @@ jobs:
228231
runs-on: ubuntu-latest
229232

230233
environment:
231-
name: pypi # ← enable for PyPI
234+
name: pypi
232235

233236
permissions:
234237
id-token: write # OIDC token for Trusted Publishing
@@ -251,8 +254,8 @@ jobs:
251254
find dist -name '*.tar.gz' -exec mv {} upload/ \;
252255
253256
# 3. Publish to PyPI using Trusted Publishing
254-
- name: Publish to PyPI (Trusted Publishing) # ← enable for PyPI
257+
- name: Publish to PyPI (Trusted Publishing)
255258
uses: pypa/gh-action-pypi-publish@release/v1
256259
with:
257-
repository-url: https://upload.pypi.org/legacy/ # ← production endpoint
260+
repository-url: https://upload.pypi.org/legacy/
258261
packages-dir: upload

0 commit comments

Comments
 (0)