mirror of
https://github.com/minetest/minetest.git
synced 2024-12-25 15:42:24 +01:00
5949172735
* Build MkDocs Lua API documentation using GitHub CI and Pages instead * Remove Lua highlight hack as codeblocks are correctly marked as Lua now * fix line endings
49 lines
914 B
YAML
49 lines
914 B
YAML
name: lua_api_deploy
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.github/workflows/lua_api_deploy.yml'
|
|
- 'doc/lua_api.md'
|
|
- 'doc/mkdocs/'
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.11
|
|
|
|
- name: Install mkdocs
|
|
run: |
|
|
pip install -U -r doc/mkdocs/requirements.txt
|
|
|
|
- name: Build documentation
|
|
run: |
|
|
cd doc/mkdocs/
|
|
./build.sh
|
|
|
|
- name: Setup Pages
|
|
uses: actions/configure-pages@v3
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-pages-artifact@v2
|
|
with:
|
|
path: 'public/'
|
|
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v2
|