From 66ead65c7ad09cf59cadc8b9bfb8294508337768 Mon Sep 17 00:00:00 2001 From: Tim Schilling Date: Sun, 24 Mar 2024 18:34:28 -0500 Subject: [PATCH] Make the release action a bit more reusable --- .github/workflows/release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d3ae996..16e5478 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,11 @@ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI on: push +env: + # Change these for your project's URLs + PYPI_URL: https://pypi.org/p/django-community-playground + PYPI_TEST_URL: https://test.pypi.org/p/django-community-playground + jobs: build: @@ -34,7 +39,7 @@ jobs: runs-on: ubuntu-latest environment: name: pypi - url: https://pypi.org/p/django-community-playground + url: ${{ env.PYPI_URL }} permissions: id-token: write # IMPORTANT: mandatory for trusted publishing steps: @@ -97,7 +102,7 @@ jobs: environment: name: testpypi - url: https://test.pypi.org/p/django-community-playground + url: ${{ env.PYPI_TEST_URL }} permissions: id-token: write # IMPORTANT: mandatory for trusted publishing