Skip to content

fix: disable fmt macros without fmt support #96

fix: disable fmt macros without fmt support

fix: disable fmt macros without fmt support #96

Workflow file for this run

name: publish
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: "true"
fetch-depth: 0
- name: Inject version into mainpage.dox
run: |
TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0-untagged")
TAG=$(echo "$TAG" | sed 's/^v//')
echo "Using version: $TAG"
test -f docs/mainpage.dox || { echo "mainpage.dox not found!"; exit 1; }
sed -i "0,/VERSION_PLACEHOLDER/s//$TAG/" docs/mainpage.dox
- name: Generate Documentation
uses: mattnotmitt/doxygen-action@edge
- name: Check for documentation changes
id: docs_changed
run: |
if git diff --quiet -- docs/html; then
echo "changed=false" >> "$GITHUB_OUTPUT"
else
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Publish generated content to GitHub Pages
if: steps.docs_changed.outputs.changed == 'true'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
publish_dir: docs/html
publish_branch: gh-pages