Skip to content

Commit 5664e91

Browse files
authored
Update ci.yml following MkDocs
1 parent fca0a5f commit 5664e91

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

.github/workflows/ci.yml

+15-9
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,29 @@
1-
name: ci
1+
name: ci
22
on:
33
push:
44
branches:
5-
- master
5+
- master
66
- main
77
permissions:
88
contents: write
99
jobs:
1010
deploy:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
14-
- 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
1519
with:
1620
python-version: 3.x
17-
- uses: actions/cache@v2
21+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
22+
- uses: actions/cache@v4
1823
with:
19-
key: ${{ github.ref }}
24+
key: mkdocs-material-${{ env.cache_id }}
2025
path: .cache
21-
- run: pip install pipenv
22-
- run: pipenv install --dev
23-
- run: pipenv run mkdocs gh-deploy --force
26+
restore-keys: |
27+
mkdocs-material-
28+
- run: pip install mkdocs-material
29+
- run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)