diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index cad201d..aa94200 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -72,3 +72,22 @@ jobs: - name: Run pytest run: make pytest + + release: + name: Releasing to pypi + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Build + uses: abatilo/actions-poetry@v1.5.0 + with: + python_version: 3.8.0 + poetry_version: 1.0 + working_directory: . + args: build + - name: Publish package + 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 }}