Skip to content

Commit bf78af4

Browse files
committed
Deploy documentation in a different way
1 parent 9b3cc1e commit bf78af4

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/deploy-mkdocs.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ on:
66
branches: ['*'] # <<<<<<<<< Return this to main before merging
77

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

1113
jobs:
1214
deploy:
1315
runs-on: windows-latest
16+
environment:
17+
name: github-pages
18+
url: ${{ steps.deployment.outputs.page_url }}
1419
steps:
1520
- name: Checkout
1621
uses: actions/checkout@v4
@@ -23,5 +28,17 @@ jobs:
2328
- name: Install the project
2429
run: uv sync --locked --group docs
2530

26-
- name: Deploy MkDocs
27-
run: mkdocs gh-deploy --force
31+
- name: Build MkDocs
32+
run: mkdocs build --site-dir ./deploy
33+
34+
- name: Setup Pages
35+
uses: actions/configure-pages@v4
36+
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: './deploy'
41+
42+
- name: Deploy to GitHub Pages
43+
id: deployment
44+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)