Skip to content

Commit 8c291c5

Browse files
committed
docs: use github actions for generating documentation
1 parent 65404ae commit 8c291c5

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/doxygen.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy site
2+
3+
on:
4+
push:
5+
branches: [ c3d-docs ]
6+
7+
jobs:
8+
doc-deploy:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
persist-credentials: false
15+
16+
- name: Set up Doxygen
17+
run: sudo apt install doxygen
18+
19+
- name: Display Doxygen version
20+
run: echo "Doxygen version $(doxygen -v)"
21+
22+
- name: Generate libctru tags
23+
run: |
24+
git clone --branch=master --single-branch --depth 1 https://github.com/devkitPro/libctru
25+
cd libctru/libctru
26+
doxygen
27+
28+
- name: Build documentation
29+
run: CTRU_DOCPATH="https://libctru.devkitpro.org/" doxygen
30+
31+
- name: Deploy 🚀
32+
uses: JamesIves/github-pages-deploy-action@3.7.1
33+
with:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
BRANCH: gh-pages # The branch the action should deploy to.
36+
FOLDER: docs/html # The folder the action should deploy.
37+
CLEAN: true # Automatically remove deleted files from the deploy branch

0 commit comments

Comments
 (0)