-
Notifications
You must be signed in to change notification settings - Fork 115
44 lines (36 loc) · 1.11 KB
/
deploy-version.yaml
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
name: Version-dependent docs build & deploy
on:
push:
branches:
- main
- "0.80"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Generate project showcase pages from .yaml files
run: python build_tools/generate_showcase_pages.py
- name: Configure github
run: |
git config --global user.name Docs deploy
git config --global user.email docs@dummy.bot.com
- name: Publish 0.80 website and API reference
if: ${{ github.ref_name == '0.80' }}
run: |
mike deploy --push --update-aliases 0.80 dev
- name: Publish latest docs website and API reference
if: ${{ github.ref_name == 'main' }}
run: |
mike deploy --push --update-aliases 0.57 latest