2023-04-30 20:40:16 +00:00
|
|
|
name: docs
|
2023-04-30 20:38:30 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2023-10-20 18:27:00 +00:00
|
|
|
paths:
|
|
|
|
- 'docs/**'
|
2023-11-01 16:43:27 +00:00
|
|
|
- 'go-vod/**'
|
2023-11-01 17:32:50 +00:00
|
|
|
- 'android/**'
|
2023-10-20 18:27:00 +00:00
|
|
|
- 'CHANGELOG.md'
|
|
|
|
- 'mkdocs.yml'
|
2023-04-30 20:38:30 +00:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-10-22 20:19:23 +00:00
|
|
|
|
2023-04-30 20:38:30 +00:00
|
|
|
- uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: 3.x
|
2023-10-22 20:19:23 +00:00
|
|
|
|
2023-04-30 20:38:30 +00:00
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
key: ${{ github.ref }}
|
|
|
|
path: .cache
|
2023-10-22 20:19:23 +00:00
|
|
|
|
|
|
|
- name: Build documentation
|
|
|
|
run: |
|
|
|
|
cp CHANGELOG.md docs/changelog.md
|
|
|
|
sed -n '/DEFAULTS = \[/,/];/p' lib/Settings/SystemConfig.php | sed 's/^ //' > docs/system-config.php
|
|
|
|
pip install mkdocs-material pillow cairosvg
|
|
|
|
mkdocs gh-deploy --force
|