Update build.yaml

This commit is contained in:
Frederick Chen
2026-01-23 19:30:11 +08:00
committed by GitHub
parent ed1bcb5594
commit 103aaec360

View File

@@ -1,8 +1,8 @@
name: ci name: ci
on: on:
push: push:
branches: branches:
- master - master
- main - main
permissions: permissions:
contents: write contents: write
@@ -17,14 +17,14 @@ jobs:
git config user.email 41898282+github-actions[bot]@users.noreply.github.com git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: 3.x python-version: '3.11'
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4 - uses: actions/cache@v4
with: with:
key: mkdocs-material-${{ env.cache_id }} key: mkdocs-material-${{ env.cache_id }}
path: ~/.cache path: ~/.cache
restore-keys: | restore-keys: |
mkdocs-material- mkdocs-material-
- run: pip install mkdocs-material - run: python -m pip install --upgrade pip setuptools wheel
- run: pip install git-revision-date-localized - run: pip install mkdocs-material git-revision-date-localized
- run: mkdocs gh-deploy --force - run: mkdocs gh-deploy --force