-
Notifications
You must be signed in to change notification settings - Fork 10
31 lines (31 loc) · 1.19 KB
/
build_apidocs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: "Build d-SEAMS API Docs"
on: [push, pull_request]
jobs:
build_apidocs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Get external tags
run: |
mkdir -p tags
cd tags
curl https://upload.cppreference.com/mwiki/images/f/f8/cppreference-doxygen-web.tag.xml -o cppreference-doxygen-web.tag.xml
- name: Get Theme
run: |
wget https://github.com/HaoZeke/doxyYoda/releases/download/0.0.2/doxyYoda_0.0.2.tar.gz
tar xf doxyYoda_0.0.2.tar.gz
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
with:
name: dseams
- run: nix-shell --run "doxygen Doxyfile-prj.cfg"
- run: |
find docs/ -type f -name "*" -print0 | xargs -0 sed -i '' -e 's/>Pages</>Wiki</g' || true
- name: Deploy Documentation
if: ${{ (github.ref == 'refs/heads/main' && github.repository == 'd-SEAMS/seams-core') || (github.ref == 'refs/heads/master' && github.repository == 'd-SEAMS/seams-core')}}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/html