Skip to content

Commit c942696

Browse files
committed
Update ci.yml
1 parent d089b42 commit c942696

File tree

1 file changed

+5
-29
lines changed

1 file changed

+5
-29
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,42 +6,18 @@ on:
66
- main
77
permissions:
88
contents: write
9-
id-token: write
10-
pages: write
11-
129
jobs:
1310
deploy:
1411
runs-on: ubuntu-latest
1512
steps:
16-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
1714
- uses: actions/setup-python@v4
1815
with:
1916
python-version: 3.x
20-
21-
- name: Set up build cache
22-
uses: actions/cache/restore@v4
17+
- uses: actions/cache@v4
2318
with:
24-
key: mkdocs-material-${{ hashfiles('.cache/**') }}
25-
path: ~/.cache
26-
restore-keys: |
27-
mkdocs-material-
28-
19+
key: ${{ github.ref }}
20+
path: .cache
2921
- run: pip install mkdocs-material
3022
- run: pip install pillow cairosvg
31-
32-
- name: Build documentation
33-
run: |
34-
mkdocs build --clean
35-
mkdocs --version
36-
- name: Deploy to GitHub Pages
37-
uses: peaceiris/actions-gh-pages@v4
38-
with:
39-
github_token: ${{ secrets.GITHUB_TOKEN }}
40-
publish_dir: ././site
41-
keep_files: false
42-
43-
- name: Save build cache
44-
uses: actions/cache/save@v4
45-
with:
46-
key: mkdocs-material-${{ hashfiles('.cache/**') }}
47-
path: ~/.cache
23+
- run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)