refiners/.github/workflows/docs.yml

38 lines
911 B
YAML
Raw Normal View History

2024-01-08 16:23:07 +00:00
name: Deploy docs to GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v4
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
2024-01-08 16:23:07 +00:00
- name: Install Python
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Handle cache
- 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 MkDocs dependencies
- run: pip install -r requirements.docs.txt
- name: Deploy to GitHub Pages
- run: mkdocs gh-deploy --force