2020-05-26 12:21:06 +08:00
|
|
|
name: Doxygen CI
|
|
|
|
|
|
|
|
on:
|
2020-05-29 05:56:46 +08:00
|
|
|
[push]
|
|
|
|
# push:
|
|
|
|
# branches: [master]
|
2020-05-26 12:21:06 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-05-29 06:25:06 +08:00
|
|
|
runs-on: macos-latest
|
2020-05-26 12:21:06 +08:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Install requirements
|
|
|
|
run: |
|
2020-05-29 06:29:48 +08:00
|
|
|
brew install graphviz ninja
|
2020-05-29 06:26:29 +08:00
|
|
|
brew install doxygen
|
2020-05-26 12:21:06 +08: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"
|
|
|
|
clean: false
|
|
|
|
- name: Move & Commit files
|
|
|
|
run: |
|
|
|
|
cp -rp ./build/html/* . && rm -rf ./build && ls -lah
|
|
|
|
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
|
|
|
|
git add *
|
|
|
|
git commit -m "Documentation for $GITHUB_SHA" || true
|
|
|
|
git push --force || true
|