Test direct GitHub Pages deployment

This commit is contained in:
squidfunk 2023-09-22 18:46:51 +02:00
parent c23fbdfc84
commit 74d4b3b1e5
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF

View File

@ -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: