This repository has been archived by the owner on Jan 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (69 loc) · 1.67 KB
/
docs.yaml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Docs
on:
pull_request:
push:
branches:
- master
jobs:
mkdocs:
name: MkDocs
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v2
- name: Install MkDocs and Dependencies
run: pip install -r docs/requirements.txt
- name: Build Docs
run: python -m mkdocs build
- name: Upload Build Artifact
uses: actions/upload-artifact@v2
with:
name: mkdocs-site
path: site
ldoc:
name: LDoc
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v2
- name: Install Lua
uses: leafo/gh-actions-lua@v8
with:
luaVersion: "5.1"
- name: Install LuaRocks
uses: leafo/gh-actions-luarocks@v4
- name: Install LDoc and Dependencies
run: |
luarocks install ldoc
luarocks unpack ldoc
- name: Build Docs
run: lua $(ls ldoc*/ldoc/ldoc.lua | head -n1) --fatalwarnings .
- name: Upload Build Artifact
uses: actions/upload-artifact@v2
with:
name: ldoc-site
path: site/api
deploy:
name: Deploy
if: github.event_name == 'push'
needs:
- mkdocs
- ldoc
runs-on: ubuntu-latest
steps:
- name: Download MkDocs Build
uses: actions/download-artifact@v2
with:
name: mkdocs-site
path: site
- name: Download LDoc Build
uses: actions/download-artifact@v2
with:
name: ldoc-site
path: site/api
- name: Deploy Docs
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: site