Skip to content

Add mkdocs publishing of OSEP site #211

Add mkdocs publishing of OSEP site

Add mkdocs publishing of OSEP site #211

Workflow file for this run

name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push events for the main branch
push:
branches: [ mkdocs ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Needs write permission to update the gh-pages branch that is used for GitHub Pages
permissions:
contents: write
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
# Copied from https://squidfunk.github.io/mkdocs-material/publishing-your-site/
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force