diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6bf46d66..9494cff9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,3 +29,11 @@ jobs: run: | pytest codecov --required + - name: Make packages + run: python setup.py sdist bdist_wheel + - name: Publish package on PyPI + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@f91f98d65eb3eb032447201d64f2c25d67c28efe + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/setup.cfg b/setup.cfg index 3102a7e6..a9144bdd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -35,6 +35,7 @@ develop = %(tests)s pycodestyle pytest-cov codecov + wheel [pycodestyle] select = E101,W191,W291,W293,E111,E112,E113,W292,W391 exclude = .eggs,.git