ci(doc) build doc

GitHub Actions to build and deploy doc to gh-pages.
This commit is contained in:
Aire-One 2021-10-21 19:07:33 +02:00 committed by GitHub
parent 4162b3b0ff
commit cd600b0b01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

28
.github/workflows/doc.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Build doc
on:
release:
type: [created]
workflow_dispatch:
jobs:
main:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@master
- name: Prepare Lua
uses: leafo/gh-actions-lua@v8.0.0
with:
luaVersion: "5.3"
- name: Prepare Luarocks
uses: leafo/gh-actions-luarocks@v4.0.0
- name: Install ldoc rocks
run: luarocks install ldoc
- name: Run ldoc
run: ldoc .
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: doc