File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,16 @@ name: CD | Publish Python 🐍 distributions 📦 to PyPI
3
3
on :
4
4
push :
5
5
branches : [main]
6
+ workflow_dispatch :
7
+ inputs :
8
+ force_publish :
9
+ description : ' Force publish without release-please'
10
+ required : true
11
+ default : ' false'
12
+ type : choice
13
+ options :
14
+ - ' true'
15
+ - ' false'
6
16
7
17
permissions :
8
18
contents : write
29
39
pypi-publish :
30
40
name : PyPI Publish
31
41
needs : release-please
32
- if : ${{ needs.release-please.outputs.release_created }}
42
+ if : ${{ needs.release-please.outputs.release_created || (github.event_name == 'workflow_dispatch' && inputs.force_publish == 'true') }}
33
43
runs-on : ubuntu-latest
34
44
35
45
environment :
66
76
67
77
notify-runpod-workers :
68
78
name : Notify workers
69
- needs : [release-please, build-n -publish]
70
- if : ${{ needs.release-please.outputs.release_created }}
79
+ needs : [release-please, pypi -publish]
80
+ if : ${{ needs.release-please.outputs.release_created || (github.event_name == 'workflow_dispatch' && inputs.force_publish == 'true') }}
71
81
strategy :
72
82
matrix :
73
83
repo :
You can’t perform that action at this time.
0 commit comments