Upgrade mkdocs CI/CD + fix socials
parent
f9f650dea3
commit
9d660001c3
|
@ -1,36 +1,40 @@
|
||||||
name: ci
|
name: ci
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- main
|
- main
|
||||||
# At minute 0 past every 6th hour
|
|
||||||
# schedule:
|
|
||||||
# - cron: "0 */6 * * *"
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
# - uses: actions/checkout@v2
|
- name: Configure Git Credentials
|
||||||
# - name: Checkout submodules
|
run: |
|
||||||
# shell: bash
|
git config user.name github-actions[bot]
|
||||||
# run: |
|
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
||||||
# git config --global user.email "you@example.com"
|
|
||||||
# git config --global user.name "Your Name"
|
|
||||||
# git config --global pull.rebase false
|
|
||||||
# git submodule add https://github.com/swisskyrepo/HardwareAllTheThings docs
|
|
||||||
|
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
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: pip install mkdocs-material
|
||||||
- run: pip install mkdocs-git-revision-date-localized-plugin
|
- run: pip install mkdocs-git-revision-date-localized-plugin
|
||||||
- run: pip install mkdocs-git-committers-plugin
|
- run: pip install mkdocs-git-committers-plugin
|
||||||
- run: pip install mkdocs-material[imaging]
|
- run: pip install mkdocs-material[imaging]
|
||||||
- run: pip install mkdocs-meta-descriptions-plugin
|
|
||||||
- run: mkdocs gh-deploy --force
|
|
||||||
|
|
||||||
|
- run: mkdocs gh-deploy --force
|
|
@ -55,7 +55,6 @@ plugins:
|
||||||
|
|
||||||
# - meta-descriptions
|
# - meta-descriptions
|
||||||
# insiders-2.12.0 · Plugin · Experimental
|
# insiders-2.12.0 · Plugin · Experimental
|
||||||
# - social
|
|
||||||
# - tags
|
# - tags
|
||||||
# - toc.integrate
|
# - toc.integrate
|
||||||
# - navigation.instant
|
# - navigation.instant
|
||||||
|
|
Loading…
Reference in New Issue