-
Notifications
You must be signed in to change notification settings - Fork 8
37 lines (29 loc) · 810 Bytes
/
Copy pathgh-pages.yml
File metadata and controls
37 lines (29 loc) · 810 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
name: Deploy MkDocs
on:
push:
branches:
- main
workflow_dispatch: # to enable manual triggers
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install mkdocs mkdocs-material "mkdocstrings[python]" mkdocs-exclude
- name: Install build dependencies
run: |
pip install build scikit-build cmake ninja "pybind11[global]"
- name: Build and install the package
run: |
python -m pip install .
- name: Deploy to GitHub Pages
run: |
mkdocs gh-deploy --force