File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 2121env :
2222 PYTHON_VERSION : ' 3.11'
2323 SETUPTOOLS_SCM_PRETEND_VERSION : ${{ github.event_name == 'release' && github.event.release.tag_name || github.event.inputs.version }}
24- UPLOAD_PYPI : ${{ github.event_name != 'release' && github.event.inputs.upload-pypi || 'true' }}
25- UPLOAD_TESTPYPI : ${{ github.event_name != 'release' && github.event.inputs.upload-testpypi || 'false' }}
2624
2725jobs :
2826 build_package :
5957 publish_to_testpypi :
6058 needs : build_package
6159 runs-on : ubuntu-latest
62- if : ${{ env.UPLOAD_TESTPYPI == 'true' }}
60+ if : ${{ github.event_name != 'release' && github.event.inputs.upload-testpypi }}
6361 environment :
6462 name : testpypi
6563 url : https://test.pypi.org/p/torchani-dev-test
8078 publish_to_pypi :
8179 needs : build_package
8280 runs-on : ubuntu-latest
83- if : ${{ env.UPLOAD_PYPI == 'true' }}
81+ if : ${{ github.event_name == 'release' || github.event.inputs.upload-pypi }}
8482 environment :
8583 name : pypi
8684 url : https://pypi.org/p/torchani
You can’t perform that action at this time.
0 commit comments