From 9cee5686bb123ba154fdc6dee19facb7ab2c0ca3 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Wed, 27 Jan 2021 17:20:30 +0000 Subject: [PATCH] Actions: Add a workflow to deploy the zcashd book --- .github/workflows/book.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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 000000000..a5338128f --- /dev/null +++ b/.github/workflows/book.yml @@ -0,0 +1,32 @@ +name: zcashd book + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Setup mdBook + uses: peaceiris/actions-mdbook@v1 + with: + mdbook-version: '0.4.5' + + - name: Install mdbook-katex + uses: actions-rs/cargo@v1 + with: + command: install + args: mdbook-katex + + - name: Build zcashd 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