Skip to content

Commit d25f86a

Browse files
author
emre.akkaya
committed
chore: configure publisher workflow for the trusted publisher approach
1 parent 91d4d5b commit d25f86a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
permissions:
1414
contents: read
1515
packages: write
16+
id-token: write
1617

1718
steps:
1819
- name: Checkout repository
@@ -35,7 +36,5 @@ jobs:
3536
run: make build
3637

3738
- name: Publish to PyPI
38-
if: startsWith(github.ref, 'refs/tags/')
39+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
3940
uses: pypa/gh-action-pypi-publish@release/v1
40-
with:
41-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)