Use per-release URLs in GH env UI when publishing to the PyPI

This essentially, makes the UI nicer in a few places with a clickable link to the released version being presented in the web interface of GitHub.
This commit is contained in:
Sviatoslav Sydorenko (Святослав Сидоренко) 2024-02-27 01:24:27 +01:00 committed by GitHub
parent b90a4f1f4a
commit 0e59442f6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 3 deletions

View File

@ -55,9 +55,11 @@ jobs:
GH_TOKEN: ${{ github.token }}
publish-pypi:
needs: [provenance]
# Wait for approval before attempting to upload to PyPI. This allows reviewing the
# files in the draft release.
environment: publish
environment:
# Wait for approval before attempting to upload to PyPI. This allows reviewing the
# files in the draft release. The projection is configured in the repository settings.
name: publish
url: https://pypi.org/project/flask/${{ github.ref_name }}
runs-on: ubuntu-latest
permissions:
id-token: write