Skip to content

Commit 9994d5a

Browse files
committed
Use trusted publishing
1 parent 435b5dd commit 9994d5a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ jobs:
4343
if: contains(github.ref, 'refs/tags/')
4444
env:
4545
GH_TOKEN: ${{ github.token }}
46+
environment:
47+
name: publish-to-pypi
48+
url: https://pypi.org/p/uharfbuzz
49+
permissions:
50+
id-token: write # IMPORTANT: mandatory for trusted publishing
51+
4652
steps:
4753
- uses: actions/checkout@v4
4854
with:
@@ -100,9 +106,6 @@ jobs:
100106
$notes \
101107
$prerelease
102108
- name: Build and publish
103-
env:
104-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
105-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
106109
run: |
107110
if [ "$IS_PRERELEASE" == true ]; then
108111
echo "DEBUG: This is a pre-release"

0 commit comments

Comments
 (0)