Skip to content

Commit

Permalink
chore: Use PyPI OIDC to publish (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Apr 17, 2023
1 parent 5105cdb commit f0a4be3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
release:
types: [published]

permissions:
contents: write # Needed to upload artifacts to the release
id-token: write # Needed for OIDC PyPI publishing

jobs:
build_deploy:

Expand Down Expand Up @@ -35,6 +39,5 @@ jobs:
tag: ${{ github.ref }}
overwrite: true
file_glob: true
- name: Deploy to PyPI
run: |
poetry publish -u "__token__" -p "${{ secrets.PYPI_TOKEN }}"
- name: Publish
uses: pypa/[email protected]

0 comments on commit f0a4be3

Please sign in to comment.