-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (32 loc) · 941 Bytes
/
Copy pathdocs.yml
File metadata and controls
35 lines (32 loc) · 941 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
name: Deploy Docs
on:
push:
branches: [main]
paths:
- "docs/**"
- "mkdocs.yml"
- "playground/**"
workflow_dispatch:
permissions: {}
jobs:
deploy:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: "3.12"
- run: pip install mkdocs-material==9.7.6
- run: mkdocs build
- name: Copy standalone playground into site
run: |
rm -rf site/playground
cp -r playground/ site/playground/
- name: Deploy to GitHub Pages
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
pip install ghp-import==2.1.0
ghp-import site/ -p -f -n