add v3 docs workflow

This commit is contained in:
Lea Anthony
2023-09-08 10:24:01 +10:00
parent d98e1d3693
commit 679ec49e64
3 changed files with 25 additions and 5 deletions
+25
View File
@@ -0,0 +1,25 @@
name: v3 docs
on:
push:
branches:
- v3-alpha
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- 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-
- run: pip install -r requirements.insiders.txt
- run: pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
- run: mkdocs gh-deploy --force