Skip to content

Commit

Permalink
Make the release action a bit more reusable
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schilling authored Mar 24, 2024
1 parent a64dc5d commit 66ead65
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 66ead65

Please sign in to comment.