Skip to content

Commit

Permalink
Make cd-cli-extras happen only on workflow dispatch (will require man…
Browse files Browse the repository at this point in the history
…ual version updates)
  • Loading branch information
Joseph McKinsey committed Oct 11, 2024
1 parent bc92c0c commit 134acca
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/cd-cli-extras.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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__
Expand All @@ -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

0 comments on commit 134acca

Please sign in to comment.