From b6005a6965b775e42495db1023f6559ce6ff788a Mon Sep 17 00:00:00 2001 From: Mark Nazzaro Date: Mon, 19 Feb 2024 10:33:52 -0500 Subject: [PATCH] New CI/CD from squidfunk --- .github/workflows/action.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index e285b7c4..0afdffc9 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -11,16 +11,23 @@ jobs: runs-on: ubuntu-latest if: github.event.repository.fork == false steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - 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 + - uses: actions/setup-python@v5 with: python-version: 3.x - - 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- + - run: apt-get install pngquant - run: pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git - - run: pip install mkdocs-macros-plugin - run: mkdocs gh-deploy --force env: GH_TOKEN: ${{ secrets.GH_TOKEN }} \ No newline at end of file