Skip to content

Commit ae8c440

Browse files
committed
chore(ci): setup docs generation
1 parent 0932d0c commit ae8c440

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
paths:
6+
- "**.lua"
7+
branches:
8+
- master
9+
- docs
10+
11+
env:
12+
PLUGIN_NAME: Comment
13+
14+
jobs:
15+
docs:
16+
runs-on: ubuntu-latest
17+
name: emmylua to help doc
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
- name: Generating help
22+
run: |
23+
curl -Lq https://github.com/numToStr/lemmy-help/releases/latest/download/lemmy-help-x86_64-unknown-linux-gnu.tar.gz | tar xz
24+
./lemmy-help -fact \
25+
lua/Comment/{init.lua,config.lua} plugin/Comment.lua \
26+
lua/Comment/{api.lua,ft.lua,utils.lua,opfunc.lua,extra.lua} > doc/${{env.PLUGIN_NAME}}.txt
27+
28+
- name: Commit
29+
uses: stefanzweifel/git-auto-commit-action@v4
30+
with:
31+
branch: ${{ github.head_ref }}
32+
commit_message: "chore(docs): auto-generate `:help` doc"
33+
file_pattern: doc/*.txt

0 commit comments

Comments
 (0)