Skip to content

Commit

Permalink
use boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
alphasentaurii committed Apr 8, 2024
1 parent c835c28 commit 4f21baa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ jobs:
needs: [ build_artifacts ]
runs-on: ubuntu-latest
env:
url: https://pypi.org/p/spacekit
# url: https://pypi.org/p/spacekit # TEMP for testing
url: https://test.pypi.org/legacy/
test_url: https://test.pypi.org/legacy/
verbose_debug: true
environment:
name: pypi_release
url: ${{ ( github.event.inputs.test == 'true' && env.test_url) || env.url }}
url: ${{ (github.event.inputs.test && env.test_url) || env.url }}
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
Expand All @@ -75,7 +75,7 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
name: pypi
repository-url: ${{ (github.event.inputs.test == 'true' && env.test_url) || env.url }}
repository-url: ${{ (github.event.inputs.test && env.test_url) || env.url }}
verify-metadata: true
skip-existing: false
verbose: ${{ github.event.inputs.debug == 'true' && env.verbose_debug }}
verbose: ${{ github.event.inputs.debug }}

0 comments on commit 4f21baa

Please sign in to comment.