File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
inputs :
6
6
tag :
7
- description : ' Tag to publish '
7
+ description : ' Tag To Publish '
8
8
required : true
9
9
environment :
10
- description : ' PyPI environment '
10
+ description : ' PyPI Environment '
11
11
required : true
12
12
type : choice
13
13
options :
14
14
- test
15
- - prod
15
+ - release
16
16
default : ' test'
17
17
18
18
jobs :
19
- verify-builds :
20
- name : Verify build workflows passed
19
+ verify :
20
+ name : Verify Build
21
21
runs-on : ubuntu-latest
22
22
steps :
23
- - name : Verify build workflows
23
+ - name : Check workflows
24
24
uses : actions/github-script@v6
25
25
with :
26
26
script : |
@@ -68,21 +68,20 @@ jobs:
68
68
throw new Error("One or more required build workflows did not succeed.");
69
69
}
70
70
71
- build-and- publish :
72
- name : Build and publish Python distributions to ${{ github.event.inputs.environment }} PyPI
71
+ publish :
72
+ name : Building and Publishing to ${{ github.event.inputs.environment }} PyPI
73
73
runs-on : ubuntu-latest
74
- needs : verify-builds
75
-
74
+ needs : verify
76
75
77
76
environment :
78
- name : ${{ github.event.inputs.environment == 'test' && 'testpypi ' || 'pypi ' }}
77
+ name : ${{ github.event.inputs.environment == 'test' && 'test ' || 'release ' }}
79
78
url : ${{ github.event.inputs.environment == 'test' && 'https://test.pypi.org/p/scenedetect' || 'https://pypi.org/p/scenedetect' }}
80
79
81
80
permissions :
82
81
id-token : write # IMPORTANT: mandatory for trusted publishing
83
82
84
83
steps :
85
- - name : Checkout code
84
+ - name : Checkout ${{ github.event.inputs.tag }}
86
85
uses : actions/checkout@v3
87
86
with :
88
87
ref : ${{ github.event.inputs.tag }}
You can’t perform that action at this time.
0 commit comments