Hilbish/.github/workflows/docs.yml

30 lines
735 B
YAML
Raw Normal View History

2022-02-25 22:04:34 +00:00
name: Generate docs
2022-02-25 21:55:35 +00:00
on:
push:
2022-12-15 02:16:24 +00:00
branches:
- master
- docs-refactor
2022-02-25 21:55:35 +00:00
jobs:
2022-02-25 22:04:34 +00:00
gen:
2022-02-25 21:55:35 +00:00
runs-on: ubuntu-latest
steps:
2022-12-15 02:29:28 +00:00
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-go@v2
- name: Download Task
run: 'sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d'
- name: Build
run: ./bin/task
2022-02-25 21:55:35 +00:00
- name: Run docgen
run: go run cmd/docgen/docgen.go
2022-12-15 02:25:49 +00:00
- name: Run lua docgen
run: ./hilbish cmd/docgen/docgen.lua
2022-02-25 21:55:35 +00:00
- name: Commit new docs
uses: stefanzweifel/git-auto-commit-action@v4
with:
2022-02-25 22:04:34 +00:00
commit_message: "docs: [ci] generate new docs"
2022-02-25 21:55:35 +00:00
file_pattern: docs/ emmyLuaDocs/