docs: new publish workflow
This commit is contained in:
parent
9c548881d0
commit
cd411494d1
2 changed files with 28 additions and 6 deletions
27
.github/workflows/publish-docs.yml
vendored
27
.github/workflows/publish-docs.yml
vendored
|
|
@ -1,4 +1,5 @@
|
||||||
name: Publish docs via GitHub Pages
|
name: Publish docs via GitHub Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
|
@ -11,10 +12,24 @@ jobs:
|
||||||
name: Deploy docs
|
name: Deploy docs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout main
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
ssh-key: ${{ secrets.DEPLOY_KEY }}
|
||||||
|
|
||||||
- name: Deploy docs
|
- name: Set up Python
|
||||||
uses: mhausenblas/mkdocs-deploy-gh-pages@master
|
uses: actions/setup-python@v5
|
||||||
env:
|
with:
|
||||||
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
|
python-version: '3.11'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pip install mkdocs-material
|
||||||
|
|
||||||
|
- name: Configure Git identity
|
||||||
|
run: |
|
||||||
|
git config --global user.name "github-actions[bot]"
|
||||||
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
run: mkdocs gh-deploy --force
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,10 @@
|
||||||
site_name: Brittle Star Project
|
site_name: Brittle Star Project
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
|
|
||||||
|
markdown_extensions:
|
||||||
|
- pymdownx.superfences:
|
||||||
|
custom_fences:
|
||||||
|
- name: mermaid
|
||||||
|
class: mermaid
|
||||||
|
format: !!python/name:pymdownx.superfences.fence_code_format
|
||||||
|
|
|
||||||
Reference in a new issue