Skip to content

Commit

Permalink
[CI] Modified build.py to use token for all upload (#2408)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonz5288 authored Jun 7, 2021
1 parent 70db0bf commit 7a5e6ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def parse_args():
def main():
args = parse_args()
mode = args.mode
pypi_user = 'yuanming-hu'
pypi_user = '__token__'
pypi_repo = ''
project_name = args.project_name

Expand All @@ -162,7 +162,6 @@ def main():
os.environ['TWINE_PASSWORD'] = env_pypi_pwd

if mode == 'upload' and args.testpypi:
pypi_user = '__token__'
pypi_repo = '--repository testpypi'

if not args.skip_build:
Expand Down

0 comments on commit 7a5e6ec

Please sign in to comment.