Skip to content

Add Deploy step

Add Deploy step #5

Workflow file for this run

name: Doxygen GitHub Pages
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Doxygen
run: sudo apt-get -y install doxygen
- name: Set build output dir
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 }} -S ${{ github.workspace }}
-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_C_COMPILER=clang
-DCMAKE_BUILD_TYPE=Release
-DIPADDRESS_BUILD_TESTS=OFF
-DIPADDRESS_BUILD_DOC=ON
- name: Build
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config Release
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ steps.strings.outputs.build-output-dir }}/doc/html
# - run: mkdir docs
# - name: Install theme
# run: ./tools/prepare_doxygen.sh
# - name: Generate Doxygen Documentation
# run: doxygen