-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (33 loc) · 924 Bytes
/
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
name: Deploy docs
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.DOCS_CHECKOUT_PAT }}
- name: Make documentation
run: |
sudo apt install doxygen
cd docs
doxygen
- name: Build wasm
uses: addnab/docker-run-action@v3
with:
image: emscripten/emsdk
options: -v ${{ github.workspace }}:/src
run: |
make -C console/wasm
mkdir -p docs/html/emu/
cp console/wasm/console.html docs/html/emu/index.html
cp console/wasm/main.mjs docs/html/emu
cp console/wasm/main.wasm docs/html/emu
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.DOCS_CHECKOUT_PAT }}
publish_dir: docs/html