Create generate-docs.yml

This commit is contained in:
Evil Factory
2021-09-12 16:21:46 -03:00
committed by GitHub
parent 656af7df2f
commit 5a2f8edf25

37
.github/workflows/generate-docs.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
name: Generate Docs
on:
workflow_dispatch:
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: leafo/gh-actions-lua@v8.0.0
with:
luaVersion: "5.2"
- uses: leafo/gh-actions-luarocks@v4.0.0
- name: Pull LDoc
uses: actions/checkout@v2
with:
repository: impulsh/LDoc
path: ldoc
- name: Build LDoc
working-directory: ldoc
run: luarocks make
- name: Build docs
run: ldoc . --fatalwarnings
- name: Deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'EvilBot-bot/Barotrauma-lua-attempt' && success()
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/html