35 lines
804 B
YAML
35 lines
804 B
YAML
name: Deploy Gitea Pages
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'docs/**'
|
|
- 'mkdocs.yml'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Install dependencies
|
|
run: pip install mkdocs mkdocs-material
|
|
|
|
- run: mkdocs build
|
|
|
|
- name: Deploy to Gitea Pages
|
|
run: |
|
|
cd site
|
|
git init
|
|
git config user.name "github-actions"
|
|
git config user.email "actions@forteapps.net"
|
|
git add .
|
|
git commit -m "Deploy docs"
|
|
git push --force "https://x-token:${{ secrets.PAGES_TOKEN }}@git.forteapps.net/Forte/launchpad.git" HEAD:gitea-pages
|