Skip to content

Commit

Permalink
fix: move environment outside of steps
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Nov 23, 2023
1 parent 5fa82ed commit 9773658
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:
permissions:
id-token: write
contents: write

environment:
name: testpypi
url: https://pypi.org/p/invert4geom
steps:
# checkout the repo and supply a PAT for the changelog update commit.
- id: checkout
Expand All @@ -39,9 +41,6 @@ jobs:
# Upload to Test PyPI.
- id: release-test-pypi
name: Publish in-dev package to test.pypi.org
environment:
name: testpypi
url: https://pypi.org/p/invert4geom
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
if: steps.release.outputs.released == 'true'
Expand All @@ -52,9 +51,9 @@ jobs:
# Upload to real PyPI on GitHub Releases.
- id: release-pypi
name: Publish released package to pypi.org
environment:
name: pypi
url: https://pypi.org/p/invert4geom
# environment:
# name: pypi
# url: https://pypi.org/p/invert4geom
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
if: steps.release.outputs.released == 'true'
Expand Down

0 comments on commit 9773658

Please sign in to comment.