Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ on:
- 'README.md'
- '_config.yml'
- '.github/workflows/docs.yml'
# Build on pull requests as well - without deploying - so a site that no
# longer builds is caught before it reaches the default branch.
pull_request:
branches: [ main, master ]
paths:
- 'src/libcmutils.h'
- 'doc/**'
- 'README.md'
- '_config.yml'
- '.github/workflows/docs.yml'
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -65,8 +75,11 @@ jobs:
fi
echo "doxygen reported no documentation problems"

# jekyll-build-pages runs in a container as root, so _site comes back
# owned by root: take it over before writing into it or packing it.
- name: Place the reference under /api
run: |
sudo chown -R "$(id -u):$(id -g)" _site
mkdir -p _site/api
cp -r doc/html/. _site/api/

Expand All @@ -77,6 +90,7 @@ jobs:
deploy:
name: Deploy to Pages
needs: build
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
environment:
name: github-pages
Expand Down
Loading