Skip to content

Commit

Permalink
Publish python package to pypi with trusted publishers
Browse files Browse the repository at this point in the history
  • Loading branch information
p1c2u committed Feb 11, 2024
1 parent 1c0dd81 commit fdea992
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4

Expand All @@ -27,7 +29,6 @@ jobs:
run: poetry build

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

0 comments on commit fdea992

Please sign in to comment.