Skip to content

.github: workflows: build-gh-pages.yml: Fix branch name #1

.github: workflows: build-gh-pages.yml: Fix branch name

.github: workflows: build-gh-pages.yml: Fix branch name #1

name: Sphinx Docs Build
on:
pull_request:
push:
branches:
- main
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup packages on Linux
if: ${{ runner.os == 'Linux' }}
working-directory: ./docs
run: |
sudo apt install libclang-dev
pip3 install -r requirements.txt
- name: Build
run: |
cmake -B build-docs -S docs
cmake --build build-docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.event_name == 'push' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build-docs/html
force_orphan: true