Add Gitea Actions workflow for MkDocs build
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
name: MkDocs Build
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- '**.md'
|
||||
- 'mkdocs.yml'
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- name: Install MkDocs Material
|
||||
run: pip install mkdocs-material
|
||||
- name: Build MkDocs
|
||||
run: mkdocs build
|
||||
- name: Commit build output
|
||||
run: |
|
||||
git config --global user.email "ci@example.com"
|
||||
git config --global user.name "ci-bot"
|
||||
git add site
|
||||
git commit -m "Update MkDocs site"
|
||||
git push
|
||||
Reference in New Issue
Block a user