name: Publish on: release: types: [ published ] jobs: build-and-publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: ./.github/actions/python-poetry-env - name: Publish to pypi run: | poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} poetry publish --build --no-interaction - name: Deploy docs run: poetry run mkdocs gh-deploy --force