From 8124af99b3916982c752df379072330ab2884268 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Tue, 26 May 2020 03:11:28 +0100 Subject: [PATCH] Added dev-deploy.yml --- .github/workflows/dev-deploy.yml | 47 ++++++++++++++++++++++++++++++++ docs/config.ld | 2 +- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/dev-deploy.yml diff --git a/.github/workflows/dev-deploy.yml b/.github/workflows/dev-deploy.yml new file mode 100644 index 00000000..ee815db9 --- /dev/null +++ b/.github/workflows/dev-deploy.yml @@ -0,0 +1,47 @@ +name: Dev Deploy + +on: + push: + branches: + - dev + paths-ignore: + - 'docs/**' + - '.luacheckrc' + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Checkout submodules + uses: textbook/git-checkout-submodule-action@master + with: + remote: true + + - name: Update .luacheckrc + run: cp ./Factorio-luacheckrc/.luacheckrc . + + - name: Install Lua + uses: leafo/gh-actions-lua@v5 + + - name: Install LuaRocks + uses: leafo/gh-actions-luarocks@v2 + + - name: Install LDoc + run: luarocks install ldoc 1.4.4-1 + + - name: Generate Documents + working-directory: docs + run: ldoc -i . + + - name: Commit changes + uses: EndBug/add-and-commit@v4 + with: + message: "Automattic Doc Update" + add: "./docs/** .luacheckrc" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/docs/config.ld b/docs/config.ld index 43e5bfdc..30e23b4b 100644 --- a/docs/config.ld +++ b/docs/config.ld @@ -1,4 +1,4 @@ -file = '../' +file = { '../', exclude = { '../.install', '../.lua', '../.luarocks' } } dir = '../docs' project = 'ExpGaming Scenario' title = 'ExpGaming Scenario'