Skip to content

Remove insiders docs workflow #7

Remove insiders docs workflow

Remove insiders docs workflow #7

Workflow file for this run

name: documentation
on:
push:
branches:
- main
env:
CONCURRENCY: 1
PYTHON_VERSION: 3.x
permissions:
contents: write
jobs:
documentation:
name: Build documentation
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
sparse-checkout: |
docs
- name: Set up Python runtime
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set the date environmental variable
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Set up build cache
uses: actions/cache@v3
id: cache
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install dependencies
run: sudo apt-get install pngquant
- name: Install Python dependencies
run: pip install -r requirements.txt
- name: Deploy documentation
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
PYTHONPATH: .
# GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
run: |
mkdocs gh-deploy --force
mkdocs --version