Skip to content

Commit 8d12b29

Browse files
committed
chore: allow release workflow to be manually run and skip pypi upload
This makes it possible to manually invoke the release workflow and skip the pypi upload. This is useful if the release workflow was cancelled (or failed) after the pypi upload step.
1 parent 4a422b0 commit 8d12b29

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ on:
1919
push:
2020
tags:
2121
- "*.*.*"
22+
workflow_dispatch:
23+
inputs:
24+
publish_to_pypi:
25+
description: 'Publish to PyPI'
26+
required: true
27+
type: boolean
28+
default: true
2229

2330
jobs:
2431
build:
@@ -29,6 +36,7 @@ jobs:
2936
- name: Create release archive and notes
3037
run: .github/workflows/create_archive_and_notes.sh
3138
- name: Publish wheel dist
39+
if: github.event_name == 'push' || github.event.inputs.publish_to_pypi
3240
env:
3341
# This special value tells pypi that the user identity is supplied within the token
3442
TWINE_USERNAME: __token__

0 commit comments

Comments
 (0)