2020-05-26 07:33:27 +08:00
|
|
|
name: Doxygen CI
|
|
|
|
|
2020-06-04 05:13:06 +08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
2020-05-26 07:33:27 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-05-30 00:35:54 +08:00
|
|
|
runs-on: macos-latest
|
2020-05-26 07:33:27 +08:00
|
|
|
steps:
|
2022-12-17 03:53:06 +08:00
|
|
|
- uses: actions/checkout@v3
|
2020-05-26 07:33:27 +08:00
|
|
|
with:
|
|
|
|
submodules: true
|
2020-05-26 07:38:44 +08:00
|
|
|
- name: Install requirements
|
2020-05-26 09:25:32 +08:00
|
|
|
run: |
|
2020-05-30 00:35:54 +08:00
|
|
|
brew install graphviz ninja doxygen
|
2020-05-26 07:33:27 +08:00
|
|
|
- name: configure
|
|
|
|
run: cmake -G Ninja -B ./build -S .
|
|
|
|
- name: build
|
|
|
|
run: cmake --build build -t doc
|
2020-05-26 07:55:14 +08:00
|
|
|
- name: gh-pages
|
2022-12-17 04:40:29 +08:00
|
|
|
uses: actions/checkout@v3
|
2020-05-26 07:58:51 +08:00
|
|
|
with:
|
|
|
|
ref: "gh-pages"
|
2020-05-26 08:00:42 +08:00
|
|
|
clean: false
|
2020-05-26 08:20:04 +08:00
|
|
|
- name: Move & Commit files
|
|
|
|
run: |
|
|
|
|
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-06-04 05:09:53 +08:00
|
|
|
rm -rf d* && rm *.html && rm *.svg && rm *.map && rm *.md5 && rm *.png && rm *.js && rm *.css
|
|
|
|
git add .
|
2020-06-04 04:58:50 +08:00
|
|
|
cp -rp ./build/html/* . && rm -rf ./build && ls -lah
|
2020-06-04 05:09:53 +08:00
|
|
|
git add .
|
2020-05-26 09:25:32 +08:00
|
|
|
git commit -m "Documentation for $GITHUB_SHA" || true
|
2020-06-04 05:15:37 +08:00
|
|
|
git push --force || true
|