-
Notifications
You must be signed in to change notification settings - Fork 966
31 lines (31 loc) · 925 Bytes
/
ci.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
name: ci
on:
push:
branches:
- main
- update-docs-3
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: vanna-docs-${{ env.cache_id }}
path: .cache
restore-keys: |
vanna-docs-
- run: pip install PyYAML
- run: pip install nbconvert
- run: pip install ghp-import
- run: pip install pdoc
- run: pip install .
- run: pdoc vanna --logo https://img.vanna.ai/vanna-ref.svg --logo-link https://docs.vanna.ai --no-show-source --mermaid --docformat google -n -o docs
- run: python docs/sidebar.py docs/sidebar.yaml notebooks docs
- run: ghp-import -n -p -f docs