Skip to content

Commit

Permalink
chore: Add option to deploy to PyPi test in deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mnbf9rca committed Jul 24, 2024
1 parent 0798899 commit 678341b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/deploy_workflow_wrapper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down

0 comments on commit 678341b

Please sign in to comment.