From fa7792e0839f5445d2c3b1959c04a684cac9a56d Mon Sep 17 00:00:00 2001 From: Pablo Mayobre Date: Wed, 3 Nov 2021 10:39:05 -0300 Subject: [PATCH] Automate Docs building with Github Actions Author: Justin van der Leij Co-authored-by: : Justin van der Leij --- .github/workflows/doc.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/doc.yml diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml new file mode 100644 index 0000000..ca60d46 --- /dev/null +++ b/.github/workflows/doc.yml @@ -0,0 +1,38 @@ +name: Build Docs + +on: + push: + branches: + - master + +jobs: + build: + name: Build docs + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v2 + + - name: Setup Lua + uses: leafo/gh-actions-lua@v8 + with: + luaVersion: 5.4 + + - name: Install Luarocks + uses: leafo/gh-actions-luarocks@v4 + + - name: Install LDoc + run: luarocks install ldoc + + - name: Show + run: luarocks show ldoc + + - name: Build docs + run: ldoc . + + - name: Deploy + uses: JamesIves/github-pages-deploy-action@4.1.5 + with: + branch: gh-pages + folder: docs \ No newline at end of file