-
Notifications
You must be signed in to change notification settings - Fork 349
45 lines (41 loc) · 1.19 KB
/
build-docs.yml
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
40
41
42
43
44
45
name: Build Docs
on:
pull_request:
branches:
- main
- marvin-old
paths:
- 'docs/**'
- 'docs_old/**'
- 'mkdocs.yml'
- 'mkdocs.insiders.yml'
env:
MKDOCS_SOCIAL_CARDS: ${{ vars.MKDOCS_SOCIAL_CARDS }}
MKDOCS_MATERIAL_INSIDERS_REPO_RO: ${{ secrets.MKDOCS_MATERIAL_INSIDERS_REPO_RO }}
permissions:
contents: write
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- uses: actions/cache@v3
with:
key: ${{ github.ref }}
path: .cache
# for now, only install mkdocs. In the future may need to install Marvin itself.
- name: Install dependencies for MKDocs Material
run: pip install \
git+https://oauth:${MKDOCS_MATERIAL_INSIDERS_REPO_RO}@github.com/PrefectHQ/mkdocs-material-insiders.git \
mkdocs-autolinks-plugin \
mkdocs-awesome-pages-plugin \
mkdocs-markdownextradata-plugin \
mkdocstrings[python] \
pillow \
cairosvg
- name: Build docs
run: |
mkdocs build --config-file mkdocs.insiders.yml