Skip to content

Commit

Permalink
fix boolean input
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-jansen committed Jan 13, 2023
1 parent 87dbeed commit 592bedd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
description: 'Publish to PyPI?'
required: true
type: boolean
default: 'false'
default: false

jobs:
dist:
Expand Down Expand Up @@ -43,7 +43,6 @@ jobs:
upload_pypi:
needs: [ dist ]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/download-artifact@v3
with:
Expand All @@ -52,15 +51,15 @@ jobs:

- name: publish to testpypi
uses: pypa/gh-action-pypi-publish@release/v1
if: inputs.publish_to_pypi == 'false'
if: ${{ inputs.publish_to_pypi == false }}
with:
user: __token__
password: ${{ secrets.TESTPYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/

- name: publish to pypi
uses: pypa/gh-action-pypi-publish@release/v1
if: inputs.publish_to_pypi == 'true'
if: ${{ inputs.publish_to_pypi == true }}
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 592bedd

Please sign in to comment.