name: Release to PyPi on: [push] jobs: build: name: Publish runs-on: ubuntu-latest steps: - name: Publish package if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: user: __token__ password: ${{ secrets.pypi_password }}