Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,12 @@ jobs:
if: |
(github.repository == 'PolicyEngine/policyengine-core')
&& (github.event.head_commit.message == 'Update PolicyEngine Core')
# PyPI trusted publishing: PyPI accepts uploads only from this workflow in
# the pypi environment, which is limited to master. No stored PyPI token.
environment: pypi
permissions:
contents: write
id-token: write
steps:
- name: Checkout repo
uses: actions/checkout@v6
Expand All @@ -135,8 +139,6 @@ jobs:
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI }}
skip-existing: true
- name: Publish a git tag
run: bash .github/publish-git-tag.sh
1 change: 1 addition & 0 deletions changelog.d/trusted-publishing.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Publish to PyPI with trusted publishing instead of the organisation-wide PyPI token.
Loading