Skip to content

Commit 499ab35

Browse files
Update ci.yml
1 parent 7339fc9 commit 499ab35

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,30 @@
1-
name: ci
1+
name: ci
22
on:
33
push:
44
branches:
5+
- master
56
- main
67
permissions:
78
contents: write
89
jobs:
910
deploy:
1011
runs-on: ubuntu-latest
1112
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-python@v4
13+
- uses: actions/checkout@v4
14+
- name: Configure Git Credentials
15+
run: |
16+
git config user.name github-actions[bot]
17+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
18+
- uses: actions/setup-python@v5
1419
with:
1520
python-version: 3.x
16-
- uses: actions/cache@v2
21+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
22+
- uses: actions/cache@v4
1723
with:
18-
key: ${{ github.ref }}
24+
key: mkdocs-material-${{ env.cache_id }}
1925
path: .cache
20-
- run: pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
26+
restore-keys: |
27+
mkdocs-material-
28+
- run: pip install mkdocs-material
2129
- run: pip install mkdocs-table-reader-plugin
2230
- run: mkdocs gh-deploy --force
23-
env:
24-
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)