2021-07-30 16:12:29 +02:00
|
|
|
name: Build Reference
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-07-14 07:29:13 +02:00
|
|
|
uses: actions/checkout@v3
|
2021-07-30 16:12:29 +02:00
|
|
|
- name: Setup Lua
|
2023-07-14 07:29:13 +02:00
|
|
|
uses: leafo/gh-actions-lua@v10.0.0
|
2021-07-30 16:12:29 +02:00
|
|
|
with:
|
|
|
|
luaVersion: 5.4
|
|
|
|
- name: Setup Lua Rocks
|
|
|
|
uses: leafo/gh-actions-luarocks@v4
|
|
|
|
- name: Setup LDoc dependencies
|
2023-07-14 07:29:13 +02:00
|
|
|
run: luarocks install --only-deps https://raw.githubusercontent.com/lunarmodules/ldoc/master/rockspecs/ldoc-1.5.0-1.rockspec
|
2021-07-30 16:12:29 +02:00
|
|
|
- name: Setup LDoc
|
|
|
|
run: git clone --single-branch --branch=custom https://github.com/AntumDeluge/ldoc.git .ldoc/ldoc && chmod +x .ldoc/ldoc/ldoc.lua
|
|
|
|
- name: Generate docs
|
2021-07-31 14:03:20 +02:00
|
|
|
run: chmod +x .ldoc/gendoc.sh && ./.ldoc/gendoc.sh
|
2021-07-30 16:12:29 +02:00
|
|
|
- name: Deploy
|
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
publish_dir: ./3d_armor/docs
|