Skip to content

Commit

Permalink
Move to PyPI Trusted Publisher Management (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsDrike authored Aug 10, 2023
1 parent 00120fb commit 316516f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ on:
- "v*"

permissions:
id-token: write # Used to authenticate to PyPI via OIDC.
contents: read

jobs:
deploy:

runs-on: ubuntu-latest
environment: release

steps:
- name: Checkout repository
Expand All @@ -32,7 +33,6 @@ jobs:
- name: Build package
run: poetry build

- name: Publish package
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: poetry publish --no-interaction
# This uses PyPI's trusted publishing, so no token is required
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 316516f

Please sign in to comment.