From 6fbdfbf76fce822bce3beef04e6a91e89d6736fd Mon Sep 17 00:00:00 2001 From: tomciardi Date: Mon, 28 Oct 2024 14:38:21 -0400 Subject: [PATCH] updated mkdocs workflow --- .github/workflows/docs.yml | 15 +++++++++++---- mkdocs.yml | 2 +- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 44a6e79..31b1872 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -10,14 +10,21 @@ jobs: deploy: runs-on: ubuntu-latest 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: pip install mkdocs-material - run: pip install mkdocstrings-python - run: mkdocs gh-deploy --force diff --git a/mkdocs.yml b/mkdocs.yml index f2c9f1c..15a42e2 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,5 +1,5 @@ site_name: pointextract -site_url: https://cwru-sdle.github.io/pointextract/ +site_url: https://cwru-sdle.github.io/pointextract theme: name: material features: