Skip to content

Commit

Permalink
Merge pull request #107 from alissa-tung/master
Browse files Browse the repository at this point in the history
ci: pub docs
  • Loading branch information
jjdishere authored Sep 24, 2023
2 parents b60582e + 9b84e45 commit 633088f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build

permissions:
contents: write

on:
push:
branches:
- "master"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Install Lean
run: |
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s - -y --default-toolchain `cat ./lean-toolchain`
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- run: |
export CI_BUILD=1
lake update && lake exe cache get && lake build && lake -Kenv=CI_BUILD build EuclideanGeometry:docs
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
branch: gh-pages
folder: build/docs
10 changes: 7 additions & 3 deletions lakefile.lean
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ package «EG» {
-- add any package configuration options here
}

require mathlib from git
"https://github.com/leanprover-community/mathlib4.git"

@[default_target]
lean_lib «EuclideanGeometry» {
-- add any library configuration options here
}

require mathlib from git
"https://github.com/leanprover-community/mathlib4.git"

meta if get_config? env = some "CI_BUILD" then
require «doc-gen4» from git
"https://github.com/leanprover/doc-gen4.git"

0 comments on commit 633088f

Please sign in to comment.