Skip to content

Commit 14f177d

Browse files
Replace workflow
Update to latest build instructions
1 parent 8d22a16 commit 14f177d

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed
Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,53 @@
1-
name: Run mkdocs
1+
name: Build Documentation
2+
3+
# Allows you to run this workflow manually from the Actions tab
4+
# on:
5+
# workflow_dispatch:
6+
# branches: ["main"]
7+
8+
# Allows this workflow to run automatically on pushes/commits
29
on:
310
push:
4-
branches:
5-
- main
11+
branches: ["main"]
612

13+
14+
# Sets permissions of the GITHUB_TOKEN to allow files to be committed to gh-pages branch
715
permissions:
816
contents: write
17+
18+
919
jobs:
1020
deploy:
1121
runs-on: ubuntu-latest
22+
1223
steps:
1324
- name: Checkout repository
1425
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
1528

16-
- name: Instal pgnquant for optimize plugin
29+
- name: Install pgnquant for optimize plugin
1730
run: sudo apt-get install pngquant
1831

1932
- name: Set up Python runtime
20-
uses: actions/setup-python@v4
33+
uses: actions/setup-python@v5
2134
with:
2235
python-version: 3.x
2336

2437
- name: Install Python dependencies
2538
run: pip install mkdocs-monorepo-plugin mkdocs-redirects mkdocs-git-authors-plugin mkdocs-git-revision-date-localized-plugin mkdocs-git-committers-plugin-2 Pillow 'mkdocs-material[imaging]'
2639

2740
- name: Set up build cache
28-
uses: actions/cache@v2
41+
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
42+
- uses: actions/cache@v4
2943
with:
30-
key: ${{ github.ref }}
44+
key: mkdocs-material-${{ env.cache_id }}
3145
path: .cache
46+
restore-keys: |
47+
mkdocs-material-
3248
3349
- name: Install Insiders build
3450
env:
35-
MKDOCS_TOKEN: ${{ secrets.MKDOCS_SECRET }}
51+
MKDOCS_TOKEN: ${{ secrets.MKDOCS_SECRET }}
3652
run: pip install git+https://${MKDOCS_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
3753
- run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)