-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1 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
name: Documentation
on: push
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: install python dependencies
run:
pip install git+https://github.com/SovietKitsune/py-lua-doc
pip install mkdocs
pip install mkdocs-material
- uses: leafo/[email protected]
with:
luaVersion: "luajit-2.1.0-beta3"
- uses: leafo/[email protected]
- name: install lua dependencies
run: |
cd ./doc-gen/ && luarocks make docsdemo-dev-1.rockspec
- name: build docs
run: |
luadoc ./luabox > docs.json
py-lua-doc
mkdocs build
- uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: site
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}