Skip to content

Commit

Permalink
added twine/pypi action
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnsonDylan committed Apr 14, 2021
1 parent b7a40ea commit 4894419
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,13 @@ jobs:
poetry run pytest --cov=scidatalib --cov-report=term-missing tests/
pip install coverage
bash <(curl -s https://codecov.io/bash)
- name: Build Python package and Upload to PyPi
shell: bash -l {0}
if: startsWith( github.ref, 'refs/tags/v') && matrix.python-version == env.PYTHON_MAIN_VERSION
env:
PYPI_TOKEN_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
pip install wheel twine
python setup.py sdist bdist_wheel
twine upload --username "__token__" --password $PYPI_TOKEN_PASSWORD dist/*

0 comments on commit 4894419

Please sign in to comment.