Skip to content

Commit 9059e83

Browse files
authored
ci: refactor generate-docs workflow to use external source
Updated the workflow to use an external generate-docs workflow from the BlueLua repository.
1 parent a77bc58 commit 9059e83

1 file changed

Lines changed: 1 addition & 28 deletions

File tree

.github/workflows/generate-docs.yml

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,4 @@ jobs:
1414
permissions:
1515
contents: write
1616
pull-requests: write
17-
runs-on: ubuntu-latest
18-
steps:
19-
- name: Checkout
20-
uses: actions/checkout@v6
21-
22-
- name: Checkout docs generator
23-
run: git clone --depth 1 https://github.com/BlueLua/bluelua.github.io.git "${RUNNER_TEMP}/docgen"
24-
25-
- name: Setup Lua
26-
uses: leafo/gh-actions-lua@v13
27-
with:
28-
luaVersion: "luajit"
29-
30-
- name: Generate docs
31-
run: luajit "${RUNNER_TEMP}/docgen/scripts/generate-api-docs.lua" types docs
32-
33-
- name: Format docs
34-
run: npx --yes prettier@3.8.3 --write "docs/**/*.md"
35-
36-
- name: Open docs PR
37-
uses: peter-evans/create-pull-request@v7
38-
with:
39-
commit-message: "docs: generate API docs"
40-
title: "docs: generate API docs"
41-
body: "Generate and format API docs from LuaLS type annotations."
42-
branch: automation/generate-docs
43-
add-paths: |
44-
docs
17+
uses: BlueLua/bluelua.github.io/.github/workflows/generate-docs.yml@main

0 commit comments

Comments
 (0)