Commit 3f49ad8e authored by demianzhang's avatar demianzhang Committed by xuehui
Browse files

Fix Windows upload pipeline (#1035)

parent 9c1dfaf5
...@@ -206,11 +206,11 @@ jobs: ...@@ -206,11 +206,11 @@ jobs:
cd deployment\pypi cd deployment\pypi
if($env:BUILD_TYPE -eq 'prerelease'){ if($env:BUILD_TYPE -eq 'prerelease'){
Write-Host 'uploading prerelease package to testpypi...' Write-Host 'uploading prerelease package to testpypi...'
python -m twine upload -u $env:TESTPYPI_USER -p $env:TESTPYPI_PWD --repository-url https://test.pypi.org/legacy/ dist/* python -m twine upload -u $(testpypi_user) -p $(testpypi_pwd) --repository-url https://test.pypi.org/legacy/ dist/*
} }
else{ else{
Write-Host 'uploading release package to pypi...' Write-Host 'uploading release package to pypi...'
python -m twine upload -u $env:PYPI_USER -p $env:PYPI_PWD dist/* python -m twine upload -u $(pypi_user) -p $(pypi_pwd) dist/*
} }
condition: eq( variables['upload_package'], 'true') condition: eq( variables['upload_package'], 'true')
displayName: 'upload nni package to pypi/testpypi' displayName: 'upload nni package to pypi/testpypi'
...@@ -249,11 +249,11 @@ jobs: ...@@ -249,11 +249,11 @@ jobs:
cd deployment\pypi cd deployment\pypi
if($env:BUILD_TYPE -eq 'prerelease'){ if($env:BUILD_TYPE -eq 'prerelease'){
Write-Host 'uploading prerelease package to testpypi...' Write-Host 'uploading prerelease package to testpypi...'
python -m twine upload -u $env:TESTPYPI_USER -p $env:TESTPYPI_PWD --repository-url https://test.pypi.org/legacy/ dist/* python -m twine upload -u $(testpypi_user) -p $(testpypi_pwd) --repository-url https://test.pypi.org/legacy/ dist/*
} }
else{ else{
Write-Host 'uploading release package to pypi...' Write-Host 'uploading release package to pypi...'
python -m twine upload -u $env:PYPI_USER -p $env:PYPI_PWD dist/* python -m twine upload -u $(pypi_user) -p $(pypi_pwd) dist/*
} }
condition: eq( variables['upload_package'], 'true') condition: eq( variables['upload_package'], 'true')
displayName: 'upload nni package to pypi/testpypi' displayName: 'upload nni package to pypi/testpypi'
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment