File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 required : true
1212 type : choice
1313 options :
14- - test
15- - release
16- default : ' test '
14+ - testpypi
15+ - pypi
16+ default : ' testpypi '
1717
1818jobs :
1919 verify :
7474 needs : verify
7575
7676 environment :
77- name : ${{ github.event.inputs.environment == 'test' && 'testpypi' || 'pypi' }}
78- url : ${{ github.event.inputs.environment == 'test ' && 'https://test.pypi.org/p/scenedetect' || 'https://pypi.org/p/scenedetect' }}
77+ name : ${{ github.event.inputs.environment }}
78+ url : ${{ github.event.inputs.environment == 'testpypi ' && 'https://test.pypi.org/p/scenedetect' || 'https://pypi.org/p/scenedetect' }}
7979
8080 permissions :
8181 id-token : write # IMPORTANT: mandatory for trusted publishing
@@ -117,6 +117,8 @@ jobs:
117117 - name : Publish Package
118118 uses : pypa/gh-action-pypi-publish@release/v1
119119 with :
120- repository-url : ${{ github.event.inputs.environment == 'test ' && 'https://test.pypi.org/legacy/' || 'https://upload.pypi.org/legacy/' }}
120+ repository-url : ${{ github.event.inputs.environment == 'testpypi ' && 'https://test.pypi.org/legacy/' || 'https://upload.pypi.org/legacy/' }}
121121 packages-dir : pkg/
122122 print-hash : true
123+ # Tolerate retries: skip existing packages if for example only one variant was uploaded.
124+ skip-existing : true
You can’t perform that action at this time.
0 commit comments