Skip to content

Commit 03aaf18

Browse files
committed
Update test PyPI workflow to allow manual bumps
1 parent 38af962 commit 03aaf18

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/publish_to_test_pypi.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Publish Test PyPI Release
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
devNumber:
7+
required: false
8+
type: number
9+
410
push:
511
tags: ["*"]
612

@@ -16,9 +22,14 @@ jobs:
1622

1723
- run: python -m pip install build
1824

19-
- name: Set dev version prior to upload
25+
- name: Set dev version prior to upload (auto)
26+
if: ${{ github.events.inputs.devNumber == '' }}
2027
run: python ./scripts/set-dev-version.py
2128

29+
- name: Set dev version prior to upload (workflow_dispatch)
30+
if: ${{ github.events.inputs.devNumber != '' }}
31+
run: python ./scripts/set-dev-version.py -n ${{ github.events.inputs.devNumber }}
32+
2233
- run: python -m build .
2334

2435
- name: Publish to TestPyPI

0 commit comments

Comments
 (0)