Skip to content

Create math library and refactor engine to use it; improve docs generator #69

Create math library and refactor engine to use it; improve docs generator

Create math library and refactor engine to use it; improve docs generator #69

Workflow file for this run

name: Generate Lua Docs
on:
pull_request:
branches:
- dev
jobs:
generate-docs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0 # so we can push back
- name: Install Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: '5.4'
- name: Run lua
run: lua main.lua
working-directory: ./docs/lua
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "docs: Auto-generate documentation"
commit_user_name: "GitHub Actions Bot"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
file_pattern: "docs/ docs/api"