Skip to content

docs: switch workflow only on main branch #18 #4

docs: switch workflow only on main branch #18

docs: switch workflow only on main branch #18 #4

Workflow file for this run

name: Build Test and Doxygen
on:
push:
branches:
- main
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Doxygen Action
uses: mattnotmitt/doxygen-action@1.9.8
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./docs/html
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: build and test
run: |
mkdir build
cd build
cmake ..
make
make test