Skip to content

Commit

Permalink
fix: Clean out dist and build before building
Browse files Browse the repository at this point in the history
This should fix the problem with uploading old versions.

Fixes #86
  • Loading branch information
relekang committed Jan 12, 2019
1 parent c4e5dcb commit b628e46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions semantic_release/pypi.py
Expand Up @@ -21,6 +21,7 @@ def upload_to_pypi(
"""
if username is None or password is None or username == "" or password == "":
raise ImproperConfigurationError('Missing credentials for uploading')
run('rm -rf build dist')
run('python setup.py {}'.format(dists))
run(
'twine upload -u {} -p {} {} {}'.format(
Expand Down

0 comments on commit b628e46

Please sign in to comment.