diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f01a49c..19ed6e6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,8 +35,24 @@ jobs: if: "success() && startsWith(github.ref, 'refs/tags/')" runs-on: ubuntu-latest steps: - - name: Publish package to PyPI - uses: pypa/gh-action-pypi-publish@master + - uses: actions/checkout@v2 + + - name: set up python + uses: actions/setup-python@v1 with: - user: __token__ - password: ${{ secrets.pypi_password }} + python-version: '3.8' + + - name: install + run: | + make install + pip install -U wheel twine + - name: build + run: python setup.py sdist bdist_wheel + + - run: twine check dist/* + + - name: upload to pypi + run: twine upload dist/* + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.pypi_token }}