@@ -85,13 +85,18 @@ jobs: |
85 | 85 | with: |
86 | 86 | files: dist/*.whl |
87 | 87 |
|
88 | | - publish-testpypi: |
89 | | - # Publish the built wheels to TestPyPI via Trusted Publishing (OIDC) — no |
90 | | - # stored token. Requires a matching trusted/pending publisher configured on |
91 | | - # TestPyPI for project `pynec-accel`: owner stevenmburns, repo python-necpp, |
92 | | - # workflow wheels.yml, no environment. skip-existing makes re-runs |
93 | | - # idempotent (a version already on TestPyPI is left untouched). |
94 | | - name: publish to TestPyPI |
| 88 | + publish-pypi: |
| 89 | + # Publish the built wheels to PyPI via Trusted Publishing (OIDC) — no stored |
| 90 | + # token. Requires a matching trusted/pending publisher configured on PyPI |
| 91 | + # (pypi.org, NOT test.pypi.org) for project `pynec-accel`: owner |
| 92 | + # stevenmburns, repo python-necpp, workflow wheels.yml, no environment. Use |
| 93 | + # the "pending publisher" form for the first release (the project does not |
| 94 | + # exist on PyPI yet) — that first tagged run creates it. Without the |
| 95 | + # publisher configured the OIDC exchange hard-fails (it does NOT skip). |
| 96 | + # Omitting repository-url defaults the action to https://upload.pypi.org/legacy/. |
| 97 | + # skip-existing makes re-runs idempotent (a version already on PyPI is left |
| 98 | + # untouched). |
| 99 | + name: publish to PyPI |
95 | 100 | needs: build_wheels |
96 | 101 | if: startsWith(github.ref, 'refs/tags/') |
97 | 102 | runs-on: ubuntu-latest |
@@ -102,9 +107,8 @@ jobs: |
102 | 107 | with: |
103 | 108 | path: dist |
104 | 109 | merge-multiple: true |
105 | | - - name: Publish to TestPyPI |
| 110 | + - name: Publish to PyPI |
106 | 111 | uses: pypa/gh-action-pypi-publish@release/v1 |
107 | 112 | with: |
108 | | - repository-url: https://test.pypi.org/legacy/ |
109 | 113 | packages-dir: dist |
110 | 114 | skip-existing: true |