Upgrade mkdocs CI/CD + fix socials
parent
f9f650dea3
commit
9d660001c3
|
@ -1,36 +1,40 @@
|
|||
name: ci
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
# At minute 0 past every 6th hour
|
||||
# schedule:
|
||||
# - cron: "0 */6 * * *"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
# - uses: actions/checkout@v2
|
||||
# - name: Checkout submodules
|
||||
# shell: bash
|
||||
# run: |
|
||||
# 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
|
||||
- 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@v2
|
||||
- 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: pip install mkdocs-git-revision-date-localized-plugin
|
||||
- run: pip install mkdocs-git-committers-plugin
|
||||
- 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
|
||||
# insiders-2.12.0 · Plugin · Experimental
|
||||
# - social
|
||||
# - tags
|
||||
# - toc.integrate
|
||||
# - navigation.instant
|
||||
|
|
Loading…
Reference in New Issue