Format spaces #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mdbook deploy to github pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Download mdbook for Lean | |
shell: bash | |
run: | | |
curl -O --location https://github.com/leanprover/mdBook/releases/download/v0.4.15l2/mdbook-linux.tar.gz | |
tar xvf mdbook-linux.tar.gz | |
./mdbook-linux/mdbook --help | |
ldd ./mdbook-linux/mdbook | |
- name: Run mdbook build | |
shell: bash | |
run: | | |
./mdbook-linux/mdbook build | |
rm -rf ./out/.git | |
rm -rf ./out/.github | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@4.1.5 | |
with: | |
branch: gh-pages | |
folder: out | |