Skip to content

Commit 2ff1fdb

Browse files
authored
Merge pull request #42 from fonttools/use-trusted-publishing
Use trusted publishing
2 parents f0bab77 + c24d1e7 commit 2ff1fdb

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ jobs:
5454
# ... and all build jobs completed successfully
5555
needs: [build_wheels]
5656
runs-on: ubuntu-latest
57+
environment:
58+
name: publish-to-pypi
59+
url: https://pypi.org/p/openstep-plist
60+
permissions:
61+
id-token: write # IMPORTANT: mandatory for trusted publishing.
62+
5763
steps:
5864
- uses: actions/checkout@v4
5965
with:
@@ -101,9 +107,6 @@ jobs:
101107
draft: false
102108
prerelease: ${{ env.IS_PRERELEASE }}
103109
- name: Build and publish
104-
env:
105-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
106-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
107110
run: |
108111
if [ "$IS_PRERELEASE" == true ]; then
109112
echo "DEBUG: This is a pre-release"

0 commit comments

Comments
 (0)