Skip to content

Commit 9483e1c

Browse files
authored
Update ci.yml
1 parent 8963752 commit 9483e1c

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/ci.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
1-
name: Deploy Wiki
1+
name: ci
22
on:
33
push:
4-
branches: [main]
4+
branches:
5+
- main
6+
permissions:
7+
contents: write
58
jobs:
69
deploy:
710
runs-on: ubuntu-latest
811
steps:
912
- uses: actions/checkout@v4
13+
- name: Configure Git Credentials
14+
run: |
15+
git config user.name github-actions[bot]
16+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
1017
- uses: actions/setup-python@v5
1118
with:
1219
python-version: 3.x
13-
- run: pip install mkdocs-material
20+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
21+
- uses: actions/cache@v4
22+
with:
23+
key: mkdocs-material-${{ env.cache_id }}
24+
path: .cache
25+
restore-keys: |
26+
mkdocs-material-
27+
- run: pip install mkdocs-material
1428
- run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)