-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 782 Bytes
/
ci.yml
File metadata and controls
36 lines (29 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Deploy MkDocs site
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Checkout the repo
- uses: actions/checkout@v4
# Set up Python
- uses: actions/setup-python@v5
with:
python-version: 3.x
# Install MkDocs and Material theme
- run: |
pip install mkdocs
pip install mkdocs-material
# Configure git for deploy
- run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
# Deploy site to gh-pages
- run: mkdocs gh-deploy --force --verbose
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}