fix: Duplicate docs file. #273
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: Documentation | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
- '.github/**' | |
tags-ignore: | |
- '*' | |
branches: | |
- development | |
- dev | |
- refactor/meta-and-networking/* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v1 | |
- | |
name: Install Lua | |
uses: leafo/[email protected] | |
- | |
name: Install Luarocks | |
uses: leafo/[email protected] | |
- | |
name: Install Dependencies | |
run: | | |
luarocks install luafilesystem | |
luarocks install penlight | |
luarocks install markdown | |
luarocks install argparse | |
luarocks install ldoc | |
- | |
name: Build | |
run: ldoc -M -c ./config.ld -t 'Photon Lighting Documentation' -d ./docs ./lua | |
- | |
name: Changes | |
id: changes | |
run: chmod +x .github/new-docs.sh && .github/new-docs.sh | |
- | |
name: Upload | |
uses: actions/[email protected] | |
with: | |
name: docs | |
path: ./docs | |
- | |
name: Commit | |
uses: EndBug/[email protected] | |
if: steps.changes.outputs.status == 'change' | |
with: | |
author_name: Documentation Generator | |
author_email: [email protected] | |
message: "Updated Documentation" | |
path: "./docs" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |