Skip to content

Update rebuild-wiki.yml #6

Update rebuild-wiki.yml

Update rebuild-wiki.yml #6

Workflow file for this run

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
- 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
- run: ls $GITHUB_WORKSPACE
- name: Updating wiki repo
run: |
mv -f ./docs/* $GITHUB_WORKSPACE/wiki
cd $GITHUB_WORKSPACE/wiki
git add .
git commit -m '$(git rev-parse --short --verify main)'
git push