API - Added module call to top of files #21
This file contains 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 LDoc Documentation | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Lua | |
uses: leafo/gh-actions-lua@v8 | |
with: | |
luaVersion: "5.1" | |
- name: Setup Lua Rocks | |
uses: leafo/gh-actions-luarocks@v4 | |
- name: Setup dependencies | |
run: luarocks install ldoc | |
- name: Build docs | |
run: ldoc . | |
- name: Deploy | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs |