Skip to content

Commit a2b7ec7

Browse files
committed
Add environment configuration for PyPI publishing
1 parent acb19db commit a2b7ec7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,14 @@ jobs:
6060
6161
publish:
6262
needs: test
63-
name: Upload release to PyPI
63+
name: Upload release to GitHub Releases and PyPI
6464
runs-on: ubuntu-latest
6565
permissions:
6666
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
6767
contents: write
68+
environment:
69+
name: pypi
70+
url: https://pypi.org/p/<your-pypi-project-name>
6871
steps:
6972
- uses: actions/checkout@v3
7073
with:

0 commit comments

Comments
 (0)