Skip to content

ci: add workflows for publishing to GH Pages #1

ci: add workflows for publishing to GH Pages

ci: add workflows for publishing to GH Pages #1

Workflow file for this run

name: Build and deploy GitHub Pages preview for PRs
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
paths:
- "book.toml"
- "docs/**"
- ".github/actions/build-mdbook/action.yaml"
- ".github/workflows/pages-preview.yaml"
concurrency: preview-${{ github.ref }}
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/build-mdbook
if: github.event.action != 'closed'
- name: Deploy preview
uses: rossjrw/[email protected]
with:
source-dir: ./build/