From 9d660001c3873641ab76053ef4e4e16ed3e51e71 Mon Sep 17 00:00:00 2001 From: Swissky <12152583+swisskyrepo@users.noreply.github.com> Date: Sun, 31 Mar 2024 15:13:54 +0200 Subject: [PATCH] Upgrade mkdocs CI/CD + fix socials --- .github/workflows/ci.yml | 34 +++++++++++++++++++--------------- mkdocs.yml | 1 - 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c65eb3..4d4181a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 528b635..a4f755e 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -55,7 +55,6 @@ plugins: # - meta-descriptions # insiders-2.12.0 · Plugin · Experimental -# - social # - tags # - toc.integrate # - navigation.instant