Test
This commit is contained in:
41
.github/workflows/docs.yml
vendored
41
.github/workflows/docs.yml
vendored
@@ -1,45 +1,28 @@
|
|||||||
name: Build Docs
|
name: Build Docs
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches:
|
||||||
|
- main
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
name: Build docs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
- name: Setup Lua
|
- name: Setup Lua
|
||||||
uses: leafo/gh-actions-lua@v8
|
uses: leafo/gh-actions-lua@v8
|
||||||
with:
|
with:
|
||||||
luaVersion: 5.4
|
luaVersion: 5.4
|
||||||
|
- name: Setup Lua Rocks
|
||||||
- name: Setup LuaRocks
|
|
||||||
uses: leafo/gh-actions-luarocks@v4
|
uses: leafo/gh-actions-luarocks@v4
|
||||||
|
|
||||||
- name: Install LDoc
|
- name: Install LDoc
|
||||||
run: |
|
run: luarocks install ldoc
|
||||||
luarocks install ldoc
|
- name: Build docs
|
||||||
ldoc --help
|
run: make doc-site
|
||||||
|
|
||||||
- name: Debug Info
|
|
||||||
run: |
|
|
||||||
echo "Current directory:"
|
|
||||||
pwd
|
|
||||||
echo "Files in src:"
|
|
||||||
find src -type f -name "*.lua"
|
|
||||||
echo "Config file:"
|
|
||||||
cat config.ld
|
|
||||||
|
|
||||||
- name: Generate Docs
|
|
||||||
run: |
|
|
||||||
rm -rf docs
|
|
||||||
ldoc . --verbose --debug
|
|
||||||
echo "Generated files:"
|
|
||||||
find docs -type f
|
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user