Skip to content

Commit

Permalink
try to fix appveyor upload condition
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Jul 31, 2020
1 parent e8d7b36 commit e424f83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions appveyor.yml
Expand Up @@ -102,17 +102,13 @@ test_script:
after_test:
# If tests are successful, create binary packages for the project.
- ps: ls dist
# Upload whl files if building a tag on master branch. The latest Python 3
# is specified here because twine doesn't support older versions.
# Upload whl files if building a tag.
- >
IF "%APPVEYOR_REPO_BRANCH%" == "master"
(
IF "%APPVEYOR_REPO_TAG%" == "true"
(
python3 -m pip install twine &&
python3 -m twine upload --verbose --skip-existing dist/*.whl
)
)
artifacts:
# Archive the generated packages in the ci.appveyor.com build report.
Expand Down
2 changes: 1 addition & 1 deletion tools/tasks.py
Expand Up @@ -344,7 +344,7 @@ def appveyor_artifacts(ctx, vs, dest='win-dist', upload=False):
f.write(chunk)
if upload:
py = make_env(default_py, 'twine')
run(['twine', 'upload', '{}/*'.format(dest)])
run(['twine', 'upload', '--skip-existing', '{}/*'.format(dest)])
else:
print("You can now upload these wheels with: ")
print(" twine upload {}/*".format(dest))
Expand Down

0 comments on commit e424f83

Please sign in to comment.