documentaion generation
This commit is contained in:
47
.github/workflows/generate-lua-docs.yml
vendored
Normal file
47
.github/workflows/generate-lua-docs.yml
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
name: Generate Docs - Lua
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["Clean Docs"]
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout branch
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- uses: leafo/gh-actions-lua@v8.0.0
|
||||
with:
|
||||
luaVersion: "5.2"
|
||||
|
||||
- uses: leafo/gh-actions-luarocks@v4.0.0
|
||||
|
||||
- name: Pull LDoc
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: impulsh/LDoc
|
||||
path: ldoc
|
||||
|
||||
- name: Build LDoc
|
||||
working-directory: ldoc
|
||||
run: luarocks make
|
||||
|
||||
- name: Build docs
|
||||
run: ldoc .
|
||||
|
||||
- name: Copy assets
|
||||
run: |
|
||||
cp -v docs/css/* docs/html
|
||||
cp -v docs/js/* docs/html
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: docs/html
|
||||
destination_dir: lua-docs
|
||||
keep_files: true
|
||||
Reference in New Issue
Block a user