Skip to content

Commit fdea992

Browse files
committed
Publish python package to pypi with trusted publishers
1 parent 1c0dd81 commit fdea992

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/python-publish.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
jobs:
1313
publish:
1414
runs-on: ubuntu-latest
15+
permissions:
16+
id-token: write
1517
steps:
1618
- uses: actions/checkout@v4
1719

@@ -27,7 +29,6 @@ jobs:
2729
run: poetry build
2830

2931
- name: Publish
30-
env:
31-
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
32-
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
33-
run: poetry publish
32+
uses: pypa/gh-action-pypi-publish@release/v1
33+
with:
34+
packages-dir: dist/

0 commit comments

Comments
 (0)