diff options
author | Dan Davison <dandavison7@gmail.com> | 2022-01-03 08:26:42 -0500 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2022-01-15 19:27:24 -0500 |
commit | 1f5ffdc306951de910024d24262dfc0cf63535c6 (patch) | |
tree | 43e0114ae80efcd59a09df43f1b6665b9eb59804 /.github | |
parent | df00e4ad190f789f9166024f796e357b8c642217 (diff) |
Split README.md into mdbook manual
github actions config copied from https://github.com/Wilfred/difftastic
Diffstat (limited to '.github')
-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 |