Commit 352ec0b 1 parent c69eb5d commit 352ec0b Copy full SHA for 352ec0b
File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,14 @@ name: 'CI'
2
2
# Update the paths once you have created a client library build
3
3
on :
4
4
workflow_dispatch :
5
+ inputs :
6
+ publish-to-private-pypi :
7
+ description : Whether to publish the build to the private PyPI
8
+ type : choice
9
+ options :
10
+ - ' true'
11
+ - ' false'
12
+ default : ' false'
5
13
push :
6
14
tags :
7
15
- " *"
89
97
name : " Publish"
90
98
runs-on : ubuntu-latest
91
99
needs : [build-library]
92
- if : github.event_name == 'push' && (github.ref == 'refs/heads/main')
100
+ if : ( github.event_name == 'workflow_dispatch') && (github.ref == 'refs/heads/main') && (inputs.publish-to-private-pypi == 'true ')
93
101
steps :
94
102
- name : " Release to private PyPI"
95
103
uses : ansys/actions/release-pypi-private@v7
You can’t perform that action at this time.
0 commit comments