Update readme - release links and fix badge #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Workflow for uploading to PyPI | |
on: | |
# Only published to Test-PyPI in response to push to main. | |
push: | |
branches: [main] | |
release: | |
types: [published] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Python | |
uses: actions/setup-python@master | |
with: | |
python-version: "3.9" | |
- name: Install dependencies | |
run: pip install setuptools wheel | |
# run: pip install build | |
- name: Run setup.py | |
run: python setup.py sdist bdist_wheel | |
# - name: Build the project | |
# run: python -m build | |
- name: Upload to Test PyPI | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
password: ${{ secrets.TEST_PYPI_PASSWORD }} | |
repository_url: https://test.pypi.org/legacy/ | |
skip_existing: true | |
- name: Upload to PyPI | |
if: startsWith(github.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
password: ${{ secrets.PYPI_PASSWORD }} |