Skip to content

Commit

Permalink
chore: still fixing release.yml (#12)
Browse files Browse the repository at this point in the history
update pypi and testpypi environment name info
  • Loading branch information
mdtanker authored Nov 22, 2023
1 parent 24d3fca commit db9132a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ on:
# types:
# - published

permissions:
contents: read
id-token: write

jobs:
# job to determine appropriate version number, update changelog, and create a release commit
# release:
Expand Down Expand Up @@ -49,7 +45,11 @@ jobs:
release-test-pypi:
name: Publish in-dev package to test.pypi.org
needs: build-package
environment: release-test-pypi
environment:
name: testpypi
url: https://pypi.org/p/invert4geom
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest

Expand All @@ -69,7 +69,11 @@ jobs:
release-pypi:
name: Publish released package to pypi.org
needs: release-test-pypi
environment: release-pypi
environment:
name: pypi
url: https://pypi.org/p/invert4geom
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
if:
github.ref == 'refs/heads/main' && github.event.action == 'published' &&
needs.release-test-pypi.status == 'success'
Expand Down

0 comments on commit db9132a

Please sign in to comment.