Skip to content
Merged
Show file tree
Hide file tree
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
28 changes: 0 additions & 28 deletions .github/workflows/ctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,31 +65,3 @@ jobs:
working-directory: ${{ steps.strings.outputs.build-output-dir }}
run: ctest --build-config ${{ matrix.build_type }}

generate-docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set reusable strings
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"

- name: Configure CMake
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DDEADDEV_BITMASK_GENERATE_DOCS=ON
-DDEADDEV_BITMASK_BUILD_EXAMPLES=OFF
-DDEADDEV_BITMASK_BUILD_TESTS=OFF
-S ${{ github.workspace }}

- name: Doxygenize
uses: langroodi/doxygenize@v1.7.1
with:
doxygenconf: ./build/Doxyfile
htmloutput: ./docs
ghpagesbranch: gh-pages
ghpagesdir: ./

47 changes: 47 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Deploy static content to Pages

on:
push:
branches: ["main"]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set reusable strings
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Configure CMake
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DDEADDEV_BITMASK_GENERATE_DOCS=ON
-DDEADDEV_BITMASK_BUILD_EXAMPLES=OFF
-DDEADDEV_BITMASK_BUILD_TESTS=OFF
-S ${{ github.workspace }}
- name: Build
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --target deaddev_doc_doxygen
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ${{ github.workspace }}/docs/html
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4