File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 28
28
description : " Version to be released in PyPi, Docs, and Lambda Layer, e.g. v1.26.4"
29
29
default : v1.26.4
30
30
required : true
31
+ skip_pypi :
32
+ description : " Skip publishing to PyPi as it can't publish more than once. Useful for semi-failed releases"
33
+ default : false
34
+ type : boolean
35
+ required : false
31
36
32
37
jobs :
33
38
release :
@@ -74,13 +79,16 @@ jobs:
74
79
git commit -m "chore(ci): update project with version ${RELEASE_VERSION}"
75
80
git push origin HEAD:refs/heads/develop
76
81
- name : Build python package and wheel
82
+ if : ${{ !inputs.skip_pypi }}
77
83
run : poetry build
78
84
- name : Upload to PyPi test
85
+ if : ${{ !inputs.skip_pypi }}
79
86
run : make release-test
80
87
env :
81
88
PYPI_USERNAME : __token__
82
89
PYPI_TEST_TOKEN : ${{ secrets.PYPI_TEST_TOKEN }}
83
90
- name : Upload to PyPi prod
91
+ if : ${{ !inputs.skip_pypi }}
84
92
run : make release-prod
85
93
env :
86
94
PYPI_USERNAME : __token__
You can’t perform that action at this time.
0 commit comments