-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 772 Bytes
/
Copy pathdoc.yaml
File metadata and controls
29 lines (29 loc) · 772 Bytes
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
name: doc:build
on: [push]
jobs:
doc:
runs-on: ubuntu-22.04
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- uses: actions/checkout@v4
# https://github.com/lunarmodules/ldoc/issues/162
- name: markdown-nested-list-fix
run: sed --regexp-extended --in-place "s/^( *)-/ \1-/" *.md
- uses: leafo/gh-actions-lua@v13
with:
luaVersion: "5.4"
- uses: leafo/gh-actions-luarocks@v6
- name: build
run: |
luarocks install ldoc
ldoc .
- uses: actions/upload-pages-artifact@v3
with:
path: doc/
- id: deploy
uses: actions/deploy-pages@v4