-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (29 loc) · 913 Bytes
/
deploy_docs.yaml
File metadata and controls
36 lines (29 loc) · 913 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 Docs
on:
workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all branches and tags
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Switch to main branch and Install dependencies
run: |
git checkout main
python -m pip install --upgrade pip
pip install ".[docs]"
- name: Deploy with MkDocs
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
cat README.md > docs/index.md
JUPYTER_PLATFORM_DIRS=1 mkdocs gh-deploy -b docs