Skip to content

Commit

Permalink
Add submodules and configure CMake for GitHub Pages deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Stump <11492152+globberwops@users.noreply.github.com>
  • Loading branch information
globberwops committed Dec 27, 2023
1 parent f458af7 commit 24eb96a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,26 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Install Doxygen
run: sudo apt-get -y install doxygen graphviz
- name: Checkout

- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true

- name: Setup Pages
id: pages
uses: actions/configure-pages@v4

- name: Configure with CMake
run: cmake -B build -S ${{ github.workspace }}

- name: Build with CMake
run: cmake --build build --target gw_docs

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
Expand All @@ -38,8 +46,11 @@ jobs:
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}

runs-on: ubuntu-latest

needs: build

steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 24eb96a

Please # to comment.