Skip to content

Deploying Blog

Deploying Blog #7207

Workflow file for this run

name: Deploying Blog
on:
push:
branches:
- master
paths-ignore:
- .github/**
- .gitignore
- .pre-commit-config.yaml
- LICENSE
- README.md
- requirements-dev.txt
workflow_call:
workflow_dispatch:
schedule:
- cron: "0 */4 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
cache-dependency-path: "requirements*.txt"
- run: pip install -r requirements.txt
- 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: Deploy Blog
run: mkdocs gh-deploy -v -r origin -b deploy -s --force --no-history
env:
GC_CLIENT_EMAIL: ${{ secrets.GC_CLIENT_EMAIL }}
GC_CLIENT_ID: ${{ secrets.GC_CLIENT_ID }}
GC_CLIENT_X509_CERT_URL: ${{ secrets.GC_CLIENT_X509_CERT_URL }}
GC_PRIVATE_KEY: ${{ secrets.GC_PRIVATE_KEY }}
GC_PRIVATE_KEY_ID: ${{ secrets.GC_PRIVATE_KEY_ID }}
GC_PROJECT_ID: ${{ secrets.GC_PROJECT_ID }}
GC_PROPERTY_ID: ${{ secrets.GC_PROPERTY_ID }}