Skip to content

Commit 3a6db8f

Browse files
Use the PyPI token secret for DeepGym releases
Switch the DeepGym publish job from trusted publishing to token-based publishing via the pypi environment secret so release tags can publish immediately without additional PyPI-side trusted publisher setup. Constraint: The current PyPI project rejected GitHub trusted publishing for DeepGym/deepgym with invalid-publisher, while a project-scoped token is now available in the workflow environment Rejected: Keep trusted publishing and wait for manual PyPI-side reconfiguration | blocks the requested release path right now Confidence: high Scope-risk: narrow Reversibility: clean Directive: If trusted publishing is re-enabled later, remove the token path explicitly instead of leaving both mechanisms configured implicitly Tested: Verified GitHub environment secret PYPI_API_TOKEN exists for DeepGym/deepgym environment pypi Not-tested: End-to-end publish run on the updated workflow commit before push
1 parent fe76101 commit 3a6db8f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deepgym-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ jobs:
5656
needs: test
5757
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
5858
environment: pypi
59-
permissions:
60-
id-token: write
6159

6260
steps:
6361
- uses: actions/checkout@v4
@@ -78,3 +76,5 @@ jobs:
7876
uses: pypa/gh-action-pypi-publish@release/v1
7977
with:
8078
packages-dir: deepgym/dist/
79+
user: __token__
80+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)