From 134accadcd8d253cad812c9f8fd1c3db886d0be0 Mon Sep 17 00:00:00 2001 From: Joseph McKinsey Date: Fri, 11 Oct 2024 15:28:39 -0600 Subject: [PATCH] Make cd-cli-extras happen only on workflow dispatch (will require manual version updates) --- .github/workflows/cd-cli-extras.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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