From 0e59442f6cce9442c1dcaf8515df7182312fa6cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sviatoslav=20Sydorenko=20=28=D0=A1=D0=B2=D1=8F=D1=82=D0=BE?= =?UTF-8?q?=D1=81=D0=BB=D0=B0=D0=B2=20=D0=A1=D0=B8=D0=B4=D0=BE=D1=80=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE=29?= Date: Tue, 27 Feb 2024 01:24:27 +0100 Subject: [PATCH] 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. --- .github/workflows/publish.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 223599b9..312fb162 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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