Skip to content

Commit

Permalink
Add environment configuration for PyPI publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
blowekamp committed Jun 12, 2023
1 parent acb19db commit a2b7ec7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,14 @@ jobs:
publish:
needs: test
name: Upload release to PyPI
name: Upload release to GitHub Releases and PyPI
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
contents: write
environment:
name: pypi
url: https://pypi.org/p/<your-pypi-project-name>
steps:
- uses: actions/checkout@v3
with:
Expand Down

0 comments on commit a2b7ec7

Please sign in to comment.