diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 00000000..925475af --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,31 @@ +name: Build and Deploy Documentation + +on: + push: + branches: + - main # Build docs on merges to main + workflow_dispatch: + +permissions: + contents: read + id-token: write + pages: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout project + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Build and lint the project + id: build-lean + uses: leanprover/lean-action@v1 + with: + build-args: "--wfail" + + - name: Build project documentation + id: build-docgen + uses: leanprover-community/docgen-action@main