-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 840 Bytes
/
deploy-pages.yml
File metadata and controls
39 lines (32 loc) · 840 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
37
38
39
name: Deploy site to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: write
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install MkDocs and theme
run: |
python -m pip install --upgrade pip
pip install mkdocs mkdocs-material
- name: Build MkDocs site
run: mkdocs build --site-dir site
- name: Deploy to gh-pages branch
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./site
publish_branch: gh-pages
keep_files: false
github_token: ${{ secrets.GITHUB_TOKEN }}