Skip to content

docs: add worklow to preview documentation on PR #6

docs: add worklow to preview documentation on PR

docs: add worklow to preview documentation on PR #6

# yamllint disable
name: preview_documentation
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency: preview-${{ github.ref }}
jobs:
build-documentation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build documentation
uses: ./.github/actions/build_documentation
deploy-preview:
needs: build-documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: build
deploy-repository: queens-doc-preview
preview-branch: gh-pages
umbrella-dir: docs/pr-preview
pages-base-path: docs
action: auto