From 302f6ec1a916f2e267535b87d79a91c9ed0a09dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alecu=20=C8=98tefan-Iulian?= <165364995+pascalecu@users.noreply.github.com> Date: Tue, 7 Jul 2026 22:33:44 +0300 Subject: [PATCH] Run doc deployment on PR and manual runs too --- .github/workflows/deploy-docs.yml | 37 +++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 2da77d58..01ceaeb2 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -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 @@ -28,5 +57,5 @@ jobs: with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - projectName: 'internals-docs' - directory: 'build/docs/html' \ No newline at end of file + projectName: internals-docs + directory: build/docs/html \ No newline at end of file