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
37 changes: 33 additions & 4 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,53 @@
name: Deploy Doxygen Docs

on:
push:
branches:
- dev
pull_request:
branches:
- dev
workflow_dispatch:

jobs:
docs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install prerequisites
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build doxygen graphviz

- name: Configure CMake
run: cmake -S . -B build -G Ninja

- name: Generate documentation
run: cmake --build build --target docs

deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/dev'
needs: docs
runs-on: ubuntu-latest

permissions:
contents: read
deployments: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install prerequisites
run: sudo apt-get update && sudo apt-get install -y cmake ninja-build doxygen graphviz
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build doxygen graphviz

- name: Configure CMake
run: cmake -B build -G Ninja
run: cmake -S . -B build -G Ninja

- name: Generate documentation
run: cmake --build build --target docs
Expand All @@ -28,5 +57,5 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: 'internals-docs'
directory: 'build/docs/html'
projectName: internals-docs
directory: build/docs/html
Loading