Create math library and refactor engine to use it; improve docs generator #69
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |