-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an action for auto rebuilding wiki
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Rebuild Wiki | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- run: echo ${{ github.repository }} | ||
|
||
- run: echo $github.repository | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
repository: '${{ github.repository }}.wiki.git' | ||
path: '/wiki' | ||
|
||
- name: Install Luvit | ||
run: curl -L https://github.com/luvit/lit/raw/master/get-lit.sh | sh | ||
|
||
- name: Generating wiki pages | ||
run: ./luvit docgen.lua | ||
|
||
- name: Updating wiki repo | ||
run: | | ||
mv -f ./docs/* ./wiki/ | ||
cd ./wiki | ||
git add . | ||
git commit -m '$(git rev-parse --short --verify main)' | ||
git push |