2021-10-07 17:27:19 +00:00
|
|
|
name: mkdocs
|
2021-10-07 17:03:03 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-10-08 16:46:03 +00:00
|
|
|
branches:
|
2021-10-07 17:03:03 +00:00
|
|
|
- master
|
|
|
|
tags:
|
2023-10-08 16:46:03 +00:00
|
|
|
- "v*"
|
2021-10-07 17:03:03 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
mkdocs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-08 16:46:03 +00:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v4
|
2021-10-07 17:03:03 +00:00
|
|
|
with:
|
2023-10-08 16:46:03 +00:00
|
|
|
python-version: 3.x
|
|
|
|
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
|
2021-10-07 17:03:03 +00:00
|
|
|
|
2023-10-08 16:46:03 +00:00
|
|
|
- uses: actions/cache@v3
|
2021-10-07 17:03:03 +00:00
|
|
|
with:
|
2023-10-08 16:46:03 +00:00
|
|
|
key: mkdocs-material-${{ env.cache_id }}
|
|
|
|
path: .cache
|
2021-10-07 17:03:03 +00:00
|
|
|
restore-keys: |
|
2023-10-08 16:46:03 +00:00
|
|
|
mkdocs-material-
|
|
|
|
- run: pip install mkdocs-material
|
|
|
|
- run: mkdocs gh-deploy --force
|