mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Test direct GitHub Pages deployment
This commit is contained in:
parent
c23fbdfc84
commit
74d4b3b1e5
18
.github/workflows/documentation.yml
vendored
18
.github/workflows/documentation.yml
vendored
@ -50,7 +50,7 @@ jobs:
|
|||||||
- name: Set up build cache
|
- name: Set up build cache
|
||||||
uses: actions/cache/restore@v3
|
uses: actions/cache/restore@v3
|
||||||
with:
|
with:
|
||||||
key: mkdocs-material-
|
key: mkdocs-material-${{ hashfiles('.cache/**') }}
|
||||||
path: .cache
|
path: .cache
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
mkdocs-material-
|
mkdocs-material-
|
||||||
@ -78,14 +78,26 @@ jobs:
|
|||||||
rm -rf material
|
rm -rf material
|
||||||
cp -r mkdocs-material-insiders/material material
|
cp -r mkdocs-material-insiders/material material
|
||||||
|
|
||||||
- name: Deploy documentation
|
- name: Build documentation
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
|
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
|
||||||
run: |
|
run: |
|
||||||
mkdocs gh-deploy --force
|
mkdocs build --clean
|
||||||
mkdocs --version
|
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
|
- name: Save build cache
|
||||||
uses: actions/cache/save@v3
|
uses: actions/cache/save@v3
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user