Skip to content

Commit 7f648bc

Browse files
committed
add manual deploy option in github actions
1 parent 6b504f0 commit 7f648bc

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/deploy.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: Deploy Python Package
22

33
on:
4+
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: 'Git ref to deploy (tag or branch), e.g. 0.5.2'
8+
required: true
9+
default: '0.5.2'
410
release:
511
types: [published]
612

@@ -12,7 +18,10 @@ jobs:
1218
id-token: write
1319

1420
steps:
15-
- uses: actions/checkout@v4
21+
- name: Check out selected ref
22+
uses: actions/checkout@v4
23+
with:
24+
ref: ${{ github.event.inputs.ref || github.ref }}
1625

1726
- name: Set up Python
1827
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)