diff --git a/.github/workflows/pypi_publish.yml b/.github/workflows/pypi_publish.yml index 424ee2f..e0814a1 100644 --- a/.github/workflows/pypi_publish.yml +++ b/.github/workflows/pypi_publish.yml @@ -34,3 +34,10 @@ jobs: user: __token__ password: ${{ secrets.TEST_PYPI_API_TOKEN }} repository_url: https://test.pypi.org/legacy/ + + - name: Publish to PyPI + if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/setup.py b/setup.py index ea7a136..863a204 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) -version = '0.1' +version = '0.2' with open(path.join(here, 'README.md')) as readme_fh: readme = readme_fh.read()