-
-
Notifications
You must be signed in to change notification settings - Fork 33
60 lines (47 loc) · 1.35 KB
/
Documentation.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
name: Update documentation
on:
push:
branches:
- 'main'
jobs:
generate-docs:
runs-on: ubuntu-latest
steps:
- name: Check out main branch
uses: actions/checkout@v3
- name: Install Lua
uses: leafo/[email protected]
with:
luaVersion: "5.4"
- name: Install Luarocks package manager
uses: leafo/[email protected]
- name: Install LDoc (with dependencies)
run: |
luarocks install ldoc
- name: Generate HTML documentation using LDoc
run: |
ldoc -c .docs/.ldoc/config.ldoc .
- name: Commit any changes made inside the .docs folder
uses: EndBug/[email protected]
with:
add: '.docs'
remove: '.lua'
default_author: github_actions
author_name: Noble Robot
author_email: [email protected]
message: '(Documentation updates)'
push: true
- name: Remove .lua
uses: JesseTG/[email protected]
with:
path: .lua
- name: Remove .luarocks
uses: JesseTG/[email protected]
with:
path: .luarocks
- uses: numtide/clean-git-action@v1
- name: GitHub Pages Overwriter
uses: rayluo/[email protected]
with:
source-directory: .docs
target-branch: gh_pages