diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3698dc35..27bf474a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,16 +45,16 @@ jobs: - name: Run pytest run: | pytest -v tests/unit - # - name: Build a distribution - # run: | - # python setup.py sdist bdist_wheel - # - name: Publish a Python distribution to PyPI - # if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') - # uses: pypa/gh-action-pypi-publish@master - # with: - # user: __token__ - # password: ${{ secrets.pypi_password }} - # skip_existing: true + - name: Build a distribution + run: | + python setup.py sdist bdist_wheel + - name: Publish a Python distribution to PyPI + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.pypi_password }} + skip_existing: true build: runs-on: ubuntu-latest