Added dev-deploy.yml

This commit is contained in:
Cooldude2606
2020-05-26 03:11:28 +01:00
parent cd29e0490a
commit 8124af99b3
2 changed files with 48 additions and 1 deletions

47
.github/workflows/dev-deploy.yml vendored Normal file
View File

@@ -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 }}

View File

@@ -1,4 +1,4 @@
file = '../' file = { '../', exclude = { '../.install', '../.lua', '../.luarocks' } }
dir = '../docs' dir = '../docs'
project = 'ExpGaming Scenario' project = 'ExpGaming Scenario'
title = 'ExpGaming Scenario' title = 'ExpGaming Scenario'