32 lines
662 B
YAML
32 lines
662 B
YAML
name: Deploy Docs
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
pip install -r doc/requirements.txt
|
|
|
|
- name: Build Documentation
|
|
run: mkdocs build
|
|
|
|
- name: Deploy to Gitea Pages
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./site
|
|
publish_branch: pages
|