Skip to content

Commit

Permalink
fix: Add dists to twine call
Browse files Browse the repository at this point in the history
  • Loading branch information
relekang committed Nov 22, 2018
1 parent 366e9c1 commit 1cec2df
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion semantic_release/pypi.py
Expand Up @@ -16,5 +16,12 @@ def upload_to_pypi(
:param password: PyPI account password string
"""
run('python setup.py {}'.format(dists))
run('twine upload -u {} -p {} {}'.format(username, password, '--skip-existing' if skip_existing else ''))
run(
'twine upload -u {} -p {} {} {}'.format(
username,
password,
'--skip-existing' if skip_existing else '',
'dist/*'
)
)
run('rm -rf build dist')

0 comments on commit 1cec2df

Please sign in to comment.