P&P docs first commit #316
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Documentation builder | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'doc/**' | |
- '.github/workflows/book.yml' | |
jobs: | |
book: | |
name: Build and Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install mdBook | |
uses: XAMPPRocky/get-github-release@v1 | |
with: | |
owner: barsoosayque | |
repo: mdbook | |
matches: "unknown-linux-gnu" | |
token: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Build book | |
run: /tmp/mdbook build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./book/ |