mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-12-26 21:58:10 +01:00
34 lines
919 B
YAML
34 lines
919 B
YAML
# From https://github.com/lunarmodules/ldoc/blob/master/.github/workflows/doc.yml
|
|
|
|
# Based on https://gist.github.com/domenic/ec8b0fc8ab45f39403dd
|
|
name: Build Docs
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
build:
|
|
name: Build docs
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Setup Lua
|
|
uses: leafo/gh-actions-lua@v8
|
|
with:
|
|
luaVersion: 5.4
|
|
- name: Setup Lua Rocks
|
|
uses: leafo/gh-actions-luarocks@v4
|
|
- name: Setup dependencies
|
|
run: luarocks install ldoc
|
|
- name: Build docs
|
|
run: cd ./api/lua/doc && ldoc . && cd ../../..
|
|
- name: Deploy
|
|
if: ${{ github.event_name == 'push' }}
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./api/lua/doc/doc
|