Skip to content

[Docs] Add BUILD_SOCIAL_CARD env, skip social card build by default… #223

[Docs] Add BUILD_SOCIAL_CARD env, skip social card build by default…

[Docs] Add BUILD_SOCIAL_CARD env, skip social card build by default… #223

name: Deploy homepage
on:
push:
branches:
- master
paths:
- 'examples/**'
- 'docs/**'
- 'zeus/**'
- 'mkdocs.yml'
- 'docker/Dockerfile'
- '.github/workflows/deploy_homepage.yaml'
env:
SITE_ANALYTICS: google
jobs:
deploy:
runs-on: ubuntu-latest
if: github.repository_owner == 'ml-energy'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: 'pip'
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install homepage build dependencies
run: pip install '.[docs]'
- name: Build homepage
run: mkdocs gh-deploy --force
env:
BUILD_SOCIAL_CARD: true