-
Notifications
You must be signed in to change notification settings - Fork 24
39 lines (39 loc) · 993 Bytes
/
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
name: docs
on:
push:
branches:
- "main"
- "develop"
- "release/**"
pull_request:
branches:
- "main"
- "develop"
- "release/**"
jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
pages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.7
- name: install deps
uses: ./.github/actions/cached-ui-deps
- name: Build Storybook
run: |
cd ui
yarn run build-storybook --quiet --output-dir ../docs/storybook/
cd ../
- run: |
curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1
poetry install
- name: Deploy to GitHub Pages
if: github.ref_name == 'main'
run: poetry run mkdocs gh-deploy --force --strict
- name: Build Docs
if: github.ref_name != 'main'
run: poetry run mkdocs build --strict