mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Added dev-deploy.yml
This commit is contained in:
47
.github/workflows/dev-deploy.yml
vendored
Normal file
47
.github/workflows/dev-deploy.yml
vendored
Normal 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 }}
|
||||
@@ -1,4 +1,4 @@
|
||||
file = '../'
|
||||
file = { '../', exclude = { '../.install', '../.lua', '../.luarocks' } }
|
||||
dir = '../docs'
|
||||
project = 'ExpGaming Scenario'
|
||||
title = 'ExpGaming Scenario'
|
||||
|
||||
Reference in New Issue
Block a user