mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
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 }}
|