Skip to content

Commit 66ead65

Browse files
Make the release action a bit more reusable
1 parent a64dc5d commit 66ead65

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
22

33
on: push
44

5+
env:
6+
# Change these for your project's URLs
7+
PYPI_URL: https://pypi.org/p/django-community-playground
8+
PYPI_TEST_URL: https://test.pypi.org/p/django-community-playground
9+
510
jobs:
611

712
build:
@@ -34,7 +39,7 @@ jobs:
3439
runs-on: ubuntu-latest
3540
environment:
3641
name: pypi
37-
url: https://pypi.org/p/django-community-playground
42+
url: ${{ env.PYPI_URL }}
3843
permissions:
3944
id-token: write # IMPORTANT: mandatory for trusted publishing
4045
steps:
@@ -97,7 +102,7 @@ jobs:
97102

98103
environment:
99104
name: testpypi
100-
url: https://test.pypi.org/p/django-community-playground
105+
url: ${{ env.PYPI_TEST_URL }}
101106

102107
permissions:
103108
id-token: write # IMPORTANT: mandatory for trusted publishing

0 commit comments

Comments
 (0)