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 44 workflow_dispatch :
55 inputs :
66 tag :
7- description : ' Tag to publish '
7+ description : ' Tag To Publish '
88 required : true
99 environment :
10- description : ' PyPI environment '
10+ description : ' PyPI Environment '
1111 required : true
1212 type : choice
1313 options :
1414 - test
15- - prod
15+ - release
1616 default : ' test'
1717
1818jobs :
19- verify-builds :
20- name : Verify build workflows passed
19+ verify :
20+ name : Verify Build
2121 runs-on : ubuntu-latest
2222 steps :
23- - name : Verify build workflows
23+ - name : Check workflows
2424 uses : actions/github-script@v6
2525 with :
2626 script : |
@@ -68,21 +68,20 @@ jobs:
6868 throw new Error("One or more required build workflows did not succeed.");
6969 }
7070
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
7373 runs-on : ubuntu-latest
74- needs : verify-builds
75-
74+ needs : verify
7675
7776 environment :
78- name : ${{ github.event.inputs.environment == 'test' && 'testpypi ' || 'pypi ' }}
77+ name : ${{ github.event.inputs.environment == 'test' && 'test ' || 'release ' }}
7978 url : ${{ github.event.inputs.environment == 'test' && 'https://test.pypi.org/p/scenedetect' || 'https://pypi.org/p/scenedetect' }}
8079
8180 permissions :
8281 id-token : write # IMPORTANT: mandatory for trusted publishing
8382
8483 steps :
85- - name : Checkout code
84+ - name : Checkout ${{ github.event.inputs.tag }}
8685 uses : actions/checkout@v3
8786 with :
8887 ref : ${{ github.event.inputs.tag }}
You can’t perform that action at this time.
0 commit comments