Skip to content

cI: remove cleaning step #8

cI: remove cleaning step

cI: remove cleaning step #8

Workflow file for this run

name: Generate docs
on:
push:
branches:
- main
paths:
- ".github/workflows/generate-docs.yml"
- "types/**"
workflow_dispatch:
jobs:
generate-docs:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Checkout docs generator
uses: actions/checkout@v6
with:
repository: BlueLua/bluelua.github.io
path: ${{ runner.temp }}/docgen
- name: Setup Lua
uses: leafo/gh-actions-lua@v13
with:
luaVersion: "luajit"
- name: Generate docs
run: luajit "${RUNNER_TEMP}/docgen/scripts/generate-api-docs.lua" types docs
- name: Open docs PR
uses: peter-evans/create-pull-request@v7
with:
commit-message: "docs: generate API docs"
title: "docs: generate API docs"
body: "Generate API docs from LuaLS type annotations."
branch: automation/generate-docs
add-paths: |
docs