File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 2
2
name : Python Package Publication
3
3
4
4
on :
5
+ pull_request :
6
+ types : [closed]
7
+ branches : [master]
5
8
workflow_dispatch :
6
9
inputs :
7
10
release-version :
8
11
required : true
9
- dry-run :
10
- required : true
11
- default : true
12
- type : boolean
13
12
linux :
14
13
type : boolean
15
14
required : true
37
36
with :
38
37
python-versions : ' cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311'
39
38
- name : upload wheel
40
- if : ${{ !inputs.dry-run }}
39
+ if : github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
41
40
run : |
42
41
python -m pip install --upgrade pip
43
42
python -m pip install wheel setuptools twine
@@ -68,13 +67,13 @@ jobs:
68
67
python -m pip install wheel setuptools twine
69
68
python setup.py bdist_wheel
70
69
- name : upload wheel
71
- if : ${{ !inputs.dry-run }}
70
+ if : github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
72
71
run : |
73
72
twine upload dist/*
74
73
continue-on-error : false
75
74
76
75
release-build :
77
- if : ${{ !inputs.dry-run }}
76
+ if : github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
78
77
needs : [ linux-build, other-os-build ]
79
78
runs-on : ubuntu-latest
80
79
steps :
You can’t perform that action at this time.
0 commit comments