Skip to content

Commit

Permalink
refactor publish.yaml
Browse files Browse the repository at this point in the history
* trying to use https://github.com/marketplace/actions/pypi-publish with GitHub's OIDC identity provider
  • Loading branch information
zerlok committed Aug 22, 2024
1 parent 2500038 commit 8d3ca84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: abatilo/actions-poetry@v2
- name: Poetry build
run: poetry build -n
- name: Poetry publish
run: poetry publish -n -u __token__ -p ${{ secrets.PYPI_TOKEN }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 8d3ca84

Please sign in to comment.