mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-04 20:53:24 +00:00
30 lines
753 B
YAML
30 lines
753 B
YAML
name: Generate docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
gen:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
fetch-depth: 0
|
|
- uses: actions/setup-go@v5
|
|
- name: Download Task
|
|
run: 'sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d'
|
|
- name: Build
|
|
run: ./bin/task
|
|
- name: Run docgen (go-written)
|
|
run: go run cmd/docgen/docgen.go
|
|
- name: Run docgen (lua-written)
|
|
run: ./hilbish cmd/docgen/docgen.lua
|
|
- name: Commit new docs
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
with:
|
|
commit_message: "docs: [ci] generate new docs"
|
|
file_pattern: docs/ emmyLuaDocs/
|