Skip to content

Build & Deploy mdBook #269

Build & Deploy mdBook

Build & Deploy mdBook #269

Workflow file for this run

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