From 74d4b3b1e59723d5a817326030b541fc49b88c26 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Fri, 22 Sep 2023 18:46:51 +0200 Subject: [PATCH] Test direct GitHub Pages deployment --- .github/workflows/documentation.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index e793e7eb9..caae8b485 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -50,7 +50,7 @@ jobs: - name: Set up build cache uses: actions/cache/restore@v3 with: - key: mkdocs-material- + key: mkdocs-material-${{ hashfiles('.cache/**') }} path: .cache restore-keys: | mkdocs-material- @@ -78,14 +78,26 @@ jobs: rm -rf material cp -r mkdocs-material-insiders/material material - - name: Deploy documentation + - name: Build documentation env: GH_TOKEN: ${{ secrets.GH_TOKEN }} GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }} run: | - mkdocs gh-deploy --force + mkdocs build --clean mkdocs --version + - name: Fix permissions + run: | + chmod -c -R +rX site/ | while read line; do + echo "::warning title=Invalid file permissions automatically fixed::$line" + done + + - name: Upload to GitHub Pages + uses: actions/upload-pages-artifact@v2 + + - name: Deploy to GitHub Pages + uses: actions/deploy-pages@v2 + - name: Save build cache uses: actions/cache/save@v3 with: