Merge branch 'dev' #136
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy docs to GH Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
CS_TOOLS_THOUGHTSPOT__URL: ${{ secrets.THOUGHTSPOT_URL }} | |
CS_TOOLS_THOUGHTSPOT__USERNAME: ${{ secrets.THOUGHTSPOT_USERNAME }} | |
CS_TOOLS_THOUGHTSPOT__SECRET_KEY: ${{ secrets.THOUGHTSPOT_SECRET_KEY }} | |
CS_TOOLS_TEMP_DIR: /tmp | |
# FORCE THE TERMINAL TO THINK IT'S 130 COLUMNS WIDE. | |
COLUMNS: "130" | |
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 --clean | |
# DEPLOY THE DOCS. | |
- name: Deploy Documentation | |
run: mkdocs gh-deploy --force |