diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5240796..45e3bf3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,14 +9,9 @@ on: - main jobs: - deploy: - name: upload release to PyPI + bump: + name: bump version runs-on: ubuntu-latest - # Specifying a GitHub environment is optional, but strongly encouraged - environment: release - permissions: - # IMPORTANT: this permission is mandatory for trusted publishing - id-token: write steps: - uses: actions/checkout@v2 - name: Bump version and push tag @@ -28,5 +23,16 @@ jobs: REPO_OWNER: PatrickOHara RELEASE_BRANCHES: main - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + pypi-publish: + name: upload release to PyPI + needs: bump + runs-on: ubuntu-latest + # Specifying a GitHub environment is optional, but strongly encouraged + environment: release + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write + steps: + # retrieve your distributions here + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1