Skip to content

bump version + instructions #78

bump version + instructions

bump version + instructions #78

---
name: PyPI - Build and publish
on: push
jobs:
build-n-publish:
name: PyPI - Build and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.12
- name: Install requirements
run: pip install -r requirements.txt
- name: Build a binary wheel and a source tarball
run: python setup.py sdist
- name: Publish distribution package to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
- name: Publish distribution package to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true