From 2fc2b4cde67c3bda51bd4c176882cd54fffb4c36 Mon Sep 17 00:00:00 2001 From: subfish-zhou Date: Thu, 26 Sep 2024 18:19:42 +0200 Subject: [PATCH] Create book.yml --- .github/workflows/book.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/book.yml diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml new file mode 100644 index 0000000..1c3549c --- /dev/null +++ b/.github/workflows/book.yml @@ -0,0 +1,22 @@ +name: Book + +on: + pull_request: + push: + branches: + - master + workflow_dispatch: + +jobs: + book: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: install elan + 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 + + - name: build markdown files by mdgen + run: lake run build