File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ Change log
442.2 (unreleased)
55----------------
66
7+ - Change ``c-code `` GitHub Actions publishing step to use
8+ PyPI's "Trusted Publishing".
9+
710- Move package metadata from setup.py to pyproject.toml.
811
912- When moving metadata to ``pyproject.toml ``, ignore ``setup py test `` fossils.
Original file line number Diff line number Diff line change @@ -398,8 +398,12 @@ jobs:
398398 if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
399399 # Wait for both build jobs to complete
400400 needs: [build-package, manylinux]
401+ environment:
402+ name: pypi
403+ url: https://pypi.org/p/%(package_name)s
401404 permissions:
402405 contents: read
406+ id-token: write # Mandatory for trusted publishing
403407
404408 steps:
405409 - name: Download all wheel artifacts
@@ -429,8 +433,6 @@ jobs:
429433 - name: Publish to PyPI
430434 uses: pypa/gh-action-pypi-publish@release/v1
431435 with:
432- user: __token__
433- password: ${{ secrets.TWINE_PASSWORD }}
434436 skip-existing: true
435437 packages-dir: dist/
436438 verbose: true
You can’t perform that action at this time.
0 commit comments