From 678341b80f227c621a3e2a210e615f0a43bc15d7 Mon Sep 17 00:00:00 2001 From: rob al Date: Wed, 24 Jul 2024 02:33:46 +0000 Subject: [PATCH] chore: Add option to deploy to PyPi test in deploy workflow --- .github/workflows/deploy_workflow_wrapper.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy_workflow_wrapper.yml b/.github/workflows/deploy_workflow_wrapper.yml index b9d23e8..10349e9 100644 --- a/.github/workflows/deploy_workflow_wrapper.yml +++ b/.github/workflows/deploy_workflow_wrapper.yml @@ -2,6 +2,12 @@ name: build artifact and publish to pypi on: # whenever a PR is closed against main, or allow manual runs workflow_dispatch: + inputs: + deploy_to_test: + type: boolean + description: 'Deploy to PyPi test' + required: false + default: false workflow_run: workflows: ["bump version"] types: @@ -16,9 +22,9 @@ jobs: # package-version: # artifact-name: - # test this here, then move to deploy_to_pypi.yml deploy_to_pypi_test: needs: [build_artifacts] + if: ${{ github.event.inputs.deploy_to_test == true }} uses: ./.github/workflows/deploy_to_pypi.yml with: package-version: ${{ needs.build_artifacts.outputs.package-version }}