Skip to content

Commit de90140

Browse files
committed
- use PyPI "Trusted Publishing"
1 parent 1178440 commit de90140

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Change log
44
2.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.

src/zope/meta/c-code/tests.yml.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)