From 18d568a5e4406c031a24623e0cfd649cf324f375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjell=20Hedstr=C3=B6m?= Date: Thu, 23 May 2024 09:04:47 -0600 Subject: [PATCH] Update documentation.yml --- .github/workflows/documentation.yml | 65 +++++++++++++++++++++-------- 1 file changed, 48 insertions(+), 17 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index cff68b0c5..c010df151 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -1,27 +1,58 @@ -name: Publish docs via GitHub Pages +name: Dockumentation Publish v2 on: push: branches: - - master - paths: - - "**.md" - - "**.yml" - - docs/** - + - master +permissions: + contents: write jobs: - build: - name: Deploy docs + deploy: runs-on: ubuntu-latest steps: - - name: Checkout master - uses: actions/checkout@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 + - 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: mkdocs gh-deploy --force + + + +# name: Publish docs via GitHub Pages +# on: +# push: +# branches: +# - master +# paths: +# - "**.md" +# - "**.yml" +# - docs/** + +# jobs: +# build: +# name: Deploy docs +# runs-on: ubuntu-latest +# steps: +# - name: Checkout master +# uses: actions/checkout@v4 - - name: Deploy docs - uses: mhausenblas/mkdocs-deploy-gh-pages@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CONFIG_FILE: mkdocs.yml - EXTRA_PACKAGES: build-base +# - name: Deploy docs +# uses: mhausenblas/mkdocs-deploy-gh-pages@master +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# CONFIG_FILE: mkdocs.yml +# EXTRA_PACKAGES: build-base