We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c8cfb2 commit 3703406Copy full SHA for 3703406
1 file changed
.github/workflows/gh-pages.yml
@@ -7,11 +7,20 @@ on:
7
workflow_dispatch:
8
9
permissions:
10
- contents: write
+ contents: read
11
+ pages: write
12
+ id-token: write
13
+
14
+concurrency:
15
+ group: pages
16
+ cancel-in-progress: true
17
18
jobs:
19
deploy:
20
runs-on: ubuntu-latest
21
+ environment:
22
+ name: github-pages
23
+ url: ${{ steps.deployment.outputs.page_url }}
24
steps:
25
- uses: actions/checkout@v4
26
@@ -22,5 +31,13 @@ jobs:
31
- name: Install MkDocs and dependencies
32
run: pip install "mkdocs<2.0" mkdocs-material
33
- - name: Build and deploy
- 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