28 lines
547 B
YAML
28 lines
547 B
YAML
name: Deploy MkDocs to GitHub Pages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main # Trigger on pushes to main branch
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: 📥 Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: 🐍 Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.10'
|
|
|
|
- name: 📦 Install dependencies
|
|
run: |
|
|
pip install mkdocs-material
|
|
|
|
- name: 🚀 Deploy to GitHub Pages
|
|
run: |
|
|
mkdocs gh-deploy --force
|