Skip to content

Merge pull request #229 from eredotpkfr/release-plz-2025-01-13T12-34-52Z #160

Merge pull request #229 from eredotpkfr/release-plz-2025-01-13T12-34-52Z

Merge pull request #229 from eredotpkfr/release-plz-2025-01-13T12-34-52Z #160

Workflow file for this run

name: Github Pages
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
mdbook-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: 'latest'
- name: Run mdBook tests
run: make book-test
mdbook-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
needs: mdbook-tests
steps:
- uses: actions/checkout@v4
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: 'latest'
- name: Build mdBook
run: make book-build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: book/book