Build & Deploy mdBook #269
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: Build & Deploy mdBook | |
on: | |
workflow_run: | |
workflows: | |
- CI | |
types: | |
- completed | |
branches: | |
- main | |
jobs: | |
rustdoc: | |
if: github.repository == 'Xithrius/twitch-tui' && github.event.workflow_run.conclusion == 'success' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install mdBook | |
uses: peaceiris/actions-mdbook@v2 | |
with: | |
mdbook-version: 'latest' | |
- name: Build mdBook | |
run: | | |
cd book | |
mdbook build | |
- name: Deploy mdBook | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./book/book |