diff options
Diffstat (limited to '.github/workflows/manual.yml')
-rw-r--r-- | .github/workflows/manual.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml new file mode 100644 index 00000000..c262effd --- /dev/null +++ b/.github/workflows/manual.yml @@ -0,0 +1,38 @@ +name: Deploy Manual + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + steps: + - uses: actions/checkout@v2 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: 1.54.0 + override: true + - uses: actions-rs/cargo@v1 + with: + command: doc + + - name: Setup mdBook + uses: peaceiris/actions-mdbook@v1 + with: + mdbook-version: '0.4.14' + + - name: Build manual + run: mdbook build + working-directory: manual + + - name: Deploy to GitHub pages + uses: JamesIves/github-pages-deploy-action@4.1.6 + with: + branch: gh-pages + folder: manual/book |