-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.14 KB
/
generate-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Generate docs
on:
push:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: v18.x
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install NPM packages
working-directory: ./docs/scripts
run: npm ci
- name: Download LuaLS
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: 'luals/lua-language-server'
version: 'tags/3.7.4'
file: 'lua-language-server-3.7.4-linux-x64.tar.gz'
target: './docs/scripts/temp/luals/luals.tar.gz'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Extract LuaLS
working-directory: ./docs/scripts/temp/luals
run: tar -xzf luals.tar.gz
- name: Generate Lua docs
working-directory: ./docs/scripts
run: npx tsx generate.ts ./temp/luals/bin/lua-language-server
- name: Commit and push
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "docs: update Lua API docs"