Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Continue cleanup

Continue cleanup #22

Workflow file for this run

name: "Update documentation"
on:
push:
branches:
- master
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: actions/checkout@v4
name: "Clone NACT"
with:
path: 'nact'
- name: Install LuaLS
run: |
wget https://github.com/LuaLS/lua-language-server/releases/download/3.13.6/lua-language-server-3.13.6-linux-x64.tar.gz
tar -xvf lua-language-server-3.13.6-linux-x64.tar.gz
ls -la
mkdir doc_result
- name: Run LuaLS docgen
run: |
./bin/lua-language-server --doc ./nact --doc_out_path ./doc_result
cat ./doc_result/doc.json
mkdir ./doc_markdown
- uses: actions/checkout@v4
name: "Clone NACT-docs"
with:
repository: 'DKFN/NACT-docs'
path: 'nact-docs'
token: ${{ secrets.DOCS_TOKEN }}
- name: Generate markdown from json
run: |
ls -la
ls -la ./nact-docs
node ./nact/.github/scripts/docgen.js ./doc_result/doc.json ./nact-docs/api
ls -la ./nact-docs/api
- name: Push to doc repository
continue-on-error: true
run: |
cd nact-docs
git config user.name "DKFN [bot]"
git config user.email "[email protected]"
git status
git add .
git commit -m "Auto gen doc commit ${{ github.sha }}"
git push origin master