From 28ad699f2aa68384860c557ee7e0f5704909f67c Mon Sep 17 00:00:00 2001 From: Francesco Bartoli Date: Fri, 23 Feb 2024 00:02:32 +0100 Subject: [PATCH] Follow recommendations from mkdocs-material documentation --- .github/workflows/docs.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 8b3260a..e74e205 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -27,14 +27,21 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Configure Git Credentials + run: | + git config user.name github-actions[bot] + git config user.email 41898282+github-actions[bot]@users.noreply.github.com - name: Setup Python uses: actions/setup-python@v5 with: python-version: 3.* - - uses: actions/cache@v2 + - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV + - uses: actions/cache@v4 with: - key: ${{ github.ref }} + key: mkdocs-material-${{ env.cache_id }} path: .cache + restore-keys: | + mkdocs-material- - name: Install dependencies run: pip install mkdocs mkdocs-material termynal - name: Deploy and publish to GitHub Pages