Skip to content

chore: update mathlib (#672) #465

chore: update mathlib (#672)

chore: update mathlib (#672) #465

Workflow file for this run

name: docs
on:
push:
branches:
- "main"
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
name: build and deploy documentation.
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3
- name: Install elan πŸ•‘
run: |
set -o pipefail
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- --default-toolchain none -y
~/.elan/bin/lean --version
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- name: Generate docs πŸ“œ
run: |
./docgen.sh
# stolen from mathlib: https://github.com/leanprover-community/mathlib4_docs/blob/1f4ea7657bc377b4298fd400e567471d3a248b2d/.github/workflows/docs.yaml#L79-L86
- name: Upload artifact πŸ“
uses: actions/upload-pages-artifact@v1
with:
path: '.lake/build/doc'
- name: Deploy to GitHub Pages πŸš€
id: deployment
uses: actions/deploy-pages@v1