35 lines
1021 B
YAML
Raw Normal View History

2020-05-25 19:33:27 -04:00
name: Doxygen CI
on:
push:
branches: [master]
2020-05-25 19:33:27 -04:00
jobs:
build:
runs-on: macos-latest
2020-05-25 19:33:27 -04:00
steps:
- uses: actions/checkout@master
with:
submodules: true
2020-05-25 19:38:44 -04:00
- name: Install requirements
2020-05-25 21:25:32 -04:00
run: |
brew install graphviz ninja doxygen
2020-05-25 19:33:27 -04:00
- name: configure
run: cmake -G Ninja -B ./build -S .
- name: build
run: cmake --build build -t doc
- name: gh-pages
uses: actions/checkout@master
with:
ref: "gh-pages"
2020-05-25 20:00:42 -04:00
clean: false
2020-05-25 20:20:04 -04:00
- name: Move & Commit files
run: |
cp -rp ./build/html/* . && rm -rf ./build && ls -lah
2020-05-25 20:20:04 -04:00
git config --global user.name github-actions
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
2020-05-25 21:09:15 -04:00
git add *
2020-05-25 21:25:32 -04:00
git commit -m "Documentation for $GITHUB_SHA" || true
2020-05-25 20:23:45 -04:00
git push --force || true