Skip to content

Commit ed8b5d9

Browse files
committed
docs: fix MkDocs deploy with official Pages action
1 parent a263759 commit ed8b5d9

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/docs.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,38 @@ on:
66
- master
77

88
permissions:
9-
contents: write
9+
contents: read
10+
pages: write
11+
id-token: write
1012

1113
jobs:
12-
deploy:
14+
build:
1315
runs-on: ubuntu-latest
1416

1517
steps:
16-
- name: Checkout repository
18+
- name: Checkout
1719
uses: actions/checkout@v4
1820

19-
- name: Set up Python
21+
- name: Setup Python
2022
uses: actions/setup-python@v5
2123
with:
2224
python-version: 3.x
2325

24-
- name: Install dependencies
26+
- name: Install MkDocs
2527
run: |
2628
pip install "mkdocs<2.0"
2729
pip install mkdocs-material
2830
31+
- name: Build site
32+
run: mkdocs build
33+
34+
- name: Setup Pages
35+
uses: actions/configure-pages@v5
36+
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: site
41+
2942
- name: Deploy to GitHub Pages
30-
run: mkdocs gh-deploy --force
43+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)