-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (32 loc) · 944 Bytes
/
rebuild-wiki.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
name: Rebuild Wiki
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: '${{ github.repository }}.wiki'
path: 'wiki'
- uses: actions/checkout@v4
with:
path: 'repo'
- name: Install Luvit
run: curl -L https://github.com/luvit/lit/raw/master/get-lit.sh | sh
- name: Generating wiki pages
run: |
cd repo
../luvit docgen.lua
- name: Updating wiki repo
run: |
mv -f $GITHUB_WORKSPACE/repo/docs/* $GITHUB_WORKSPACE/wiki/
cd $GITHUB_WORKSPACE/wiki
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Rebuild for commit ${{ github.event.after }}"
git push