From ed46a7e92eb45e7a8a608bb1320fcee918996630 Mon Sep 17 00:00:00 2001 From: psyko-gh Date: Sun, 25 Aug 2024 14:24:30 +0200 Subject: [PATCH] build: document publish scripts --- .github/workflows/docs.yaml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 1340b65..01612e9 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -13,7 +13,10 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Configure Git Credentials run: | git config user.name github-actions[bot] @@ -21,15 +24,15 @@ jobs: - 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: 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- - name: Install dependencies run: | pip install mkdocs-material pip install mike - - run: mike deploy --push --update-aliases ${{ github.event.inputs.version }} latest + - run: mike deploy --branch gh-pages --push --update-aliases ${{ github.event.inputs.version }} latest