Skip to content

Commit

Permalink
Add an action for auto rebuilding wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilal2453 authored Jul 19, 2024
1 parent b4ea6a5 commit 639e483
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/rebuild-wiki.yml
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

0 comments on commit 639e483

Please sign in to comment.