1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
- task: TwineAuthenticate@1
inputs:
pythonUploadServiceConnection: AzureNMODLPypiNightly
condition: and(succeeded(), eq(variables.buildWheel, true))
- script: |
python -m pip install twine
cat $(PYPIRC_PATH)
python -m twine upload --verbose --skip-existing -r NMODLPypiNightly --config-file $(PYPIRC_PATH) wheelhouse/*.whl
condition: and(succeeded(), eq(variables.buildWheel, true), ne(variables['UploadWheel'], false), ne(variables.ReleaseWheelBuild, true))
displayName: 'Upload nightly wheel to pypi.org'
- task: TwineAuthenticate@1
inputs:
pythonUploadServiceConnection: AzureNMODLPypi
condition: and(succeeded(), in(variables['Build.Reason'], 'Manual'), eq(variables.ReleaseWheelBuild, true))
- script: |
python -m pip install twine
python -m twine upload --verbose --skip-existing -r NMODLPypi --config-file $(PYPIRC_PATH) wheelhouse/*.whl
condition: and(succeeded(), in(variables['Build.Reason'], 'Manual'), eq(variables.ReleaseWheelBuild, true), ne(variables['UploadWheel'], false))
displayName: 'Upload release wheel to pypi.org'
|