Skip to content

chore: do not require docs #148

chore: do not require docs

chore: do not require docs #148

Workflow file for this run

name: build and deploy docs
on:
push:
branches:
- master
pull_request:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
name: build docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: lean-action
uses: leanprover/lean-action@v1
with:
use-github-cache: false
- name: Build Doc
run: |
cd docbuild
MATHLIB_NO_CACHE_ON_UPDATE=1 lake update doc-gen4 algorithm
lake build algorithm:docs
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './docbuild/.lake/build/doc'
deploy:
if: github.ref == 'refs/heads/master'
name: deploy docs
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4