From 91fc0ffe5147550c4a7d32bf0b60c0bfd6a2b1a3 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Tue, 20 Oct 2020 23:03:19 +0100 Subject: [PATCH] Actions workflow to deploy book to GH Pages --- .github/workflows/book.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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 00000000..3e8349d1 --- /dev/null +++ b/.github/workflows/book.yml @@ -0,0 +1,26 @@ +name: Pollard book + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + + - name: Setup mdBook + uses: peaceiris/actions-mdbook@v1 + with: + mdbook-version: '0.4.4' + + - name: Build Pollard book + run: mdbook build book/ + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./book/book