-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (31 loc) · 996 Bytes
/
build-docs.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
name: Deploy docs to GH Pages
on:
push:
branches:
- master
jobs:
build:
env:
CS_TOOLS_THOUGHTSPOT__URL: ${{ secrets.THOUGHTSPOT_URL }}
CS_TOOLS_THOUGHTSPOT__USERNAME: ${{ secrets.THOUGHTSPOT_USERNAME }}
CS_TOOLS_THOUGHTSPOT__SECRET_KEY: ${{ secrets.THOUGHTSPOT_SECRET_KEY }}
runs-on: ubuntu-latest
steps:
# CHECKOUT REPOSITORY.
- name: Checkout repository
uses: actions/checkout@v3
# SETUP PYTHON.
- name: Set up Python
uses: actions/setup-python@v5
# UPDATE PIP.
- name: Ensure pip is up to date.
run: python -m pip install --upgrade pip
# INSTALL THE LATEST VERSION OF THE CS Tools PROJECT.
- name: Install Python dependencies
run: python -m pip install -e ".[docs]"
# BUILD THE DOCS.
- name: Build MkDocs Documentation
run: mkdocs build
# DEPLOY THE DOCS.
- name: Deploy Documentation
run: mkdocs gh-deploy --force