-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (51 loc) · 1.55 KB
/
docs.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Docs
on:
push:
branches:
- main
- docs
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/[email protected]
- name: Install Dependencies
run: |
wget "https://github.com/doxygen/doxygen/releases/download/Release_1_9_8/doxygen-1.9.8.linux.bin.tar.gz"
tar -xzf "doxygen-1.9.8.linux.bin.tar.gz"
cd "doxygen-1.9.8"
sudo make install
sudo apt-get install graphviz
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Generate Doxygen Documentation
run: doxygen Doxyfile
- name: Launch JSON Spec Documentation Runner
uses: actions/github-script@v6
with:
github-token: ${{ secrets.PAT_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'polyfem',
repo: 'polyfem.github.io',
workflow_id: 'build.yml',
ref: 'docs'
})
- name: Create .nojekyll
run: touch docs/html/.nojekyll
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/html
# - uses: DenverCoder1/[email protected]
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: gh-pages
# folder: docs/html
# config_file: Doxyfile