Skip to content

Commit 0b5a425

Browse files
authored
Update pypi_publish.yml
1 parent 7de1329 commit 0b5a425

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/pypi_publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ jobs:
6464
upload_pypi:
6565
needs: [build-n-publish]
6666
runs-on: ubuntu-latest
67+
environment:
68+
name: pypi
69+
url: https://pypi.org/p/dwriteshapepy # Replace <package-name> with your PyPI project name
70+
permissions:
71+
id-token: write # IMPORTANT: mandatory for trusted publishing
6772
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
6873
steps:
6974
- uses: actions/download-artifact@v4
@@ -76,9 +81,7 @@ jobs:
7681
name: source-dist-artifact
7782
path: dist
7883

79-
- uses: pypa/gh-action-pypi-publish@release/v1
80-
with:
81-
user: __token__
82-
password: ${{ secrets.pypi_password }}
84+
- name: Publish distribution 📦 to PyPI
85+
uses: pypa/gh-action-pypi-publish@release/v1
8386

8487

0 commit comments

Comments
 (0)