diff --git a/.github/workflows/cd-cli-extras.yml b/.github/workflows/cd-cli-extras.yml index 176d10c..f7070dd 100644 --- a/.github/workflows/cd-cli-extras.yml +++ b/.github/workflows/cd-cli-extras.yml @@ -4,9 +4,13 @@ on: push: branches: - main - tags: - - v* workflow_dispatch: + inputs: + publish_to_pypi: + description: 'Publish to TestPyPI and PyPI' + required: true + type: boolean + default: false jobs: build-wheels: @@ -55,7 +59,7 @@ jobs: path: helics_cli_extras/dist - name: Publish package to TestPyPI - if: startsWith(github.ref, 'refs/tags/') + if: ${{ github.event.inputs.publish_to_pypi == true }} uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ @@ -64,7 +68,7 @@ jobs: packages-dir: helics_cli_extras/dist - name: Publish package to PyPI - if: startsWith(github.ref, 'refs/tags/') + if: ${{ github.event.inputs.publish_to_pypi == true }} uses: pypa/gh-action-pypi-publish@release/v1 with: packages-dir: helics_cli_extras/dist \ No newline at end of file