Skip to content

Commit 8f35937

Browse files
Use the release environment for TestPyPI publishes (#146)
Trusted publishing is set up to require that the release be done by `publish.yml` in the `release` environment, which is only set up for the PyPI environment. Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent ba0b891 commit 8f35937

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ jobs:
5555
runs-on: ubuntu-latest
5656
needs: test-package
5757

58+
environment:
59+
name: release
60+
url: >-
61+
https://test.pypi.org/project/tzdata/${{
62+
github.event.release.tag_name
63+
}}
64+
5865
permissions:
5966
id-token: write
6067

0 commit comments

Comments
 (0)