Skip to content

Commit 3703406

Browse files
committed
fix: switch to Actions-based Pages deployment, fix broken links and nav
1 parent 0c8cfb2 commit 3703406

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,20 @@ on:
77
workflow_dispatch:
88

99
permissions:
10-
contents: write
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: true
1117

1218
jobs:
1319
deploy:
1420
runs-on: ubuntu-latest
21+
environment:
22+
name: github-pages
23+
url: ${{ steps.deployment.outputs.page_url }}
1524
steps:
1625
- uses: actions/checkout@v4
1726

@@ -22,5 +31,13 @@ jobs:
2231
- name: Install MkDocs and dependencies
2332
run: pip install "mkdocs<2.0" mkdocs-material
2433

25-
- name: Build and deploy
26-
run: mkdocs gh-deploy --force
34+
- name: Build
35+
run: mkdocs build --strict
36+
37+
- uses: actions/upload-pages-artifact@v3
38+
with:
39+
path: site/
40+
41+
- name: Deploy to GitHub Pages
42+
id: deployment
43+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)