diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..b283010 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,32 @@ +name: build-and-deploy +on: + - push +jobs: + build: + if: "github.ref == 'refs/heads/main'" + runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + container: + image: python:3.11 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Install + run: | + python3 -m venv venv + . ./venv/bin/activate + pip install -U poetry + poetry install --without=dev + poetry run make html + - name: Upload + uses: actions/upload-pages-artifact@v3 + with: + path: _build/html + - name: Pages + uses: actions/deploy-pages@v4 +