Skip to content

Commit e92cb88

Browse files
authored
fix: activate workflow-based GitHub Pages serving (#116)
1 parent 2d7bdb3 commit e92cb88

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ on:
77
paths:
88
- 'docs/**'
99
- 'mkdocs.yml'
10+
- '.github/workflows/docs.yml'
1011
pull_request:
1112
paths:
1213
- 'docs/**'
1314
- 'mkdocs.yml'
15+
- '.github/workflows/docs.yml'
1416
release:
1517
types: [published]
1618
workflow_dispatch:
@@ -34,6 +36,10 @@ jobs:
3436
- name: Install dependencies
3537
run: pip install "mkdocs-material>=9,<10" "mkdocs<2.0"
3638

39+
- name: Setup Pages
40+
if: github.event_name != 'pull_request'
41+
uses: actions/configure-pages@v4
42+
3743
- name: Build documentation
3844
run: mkdocs build --strict
3945

@@ -93,9 +99,6 @@ jobs:
9399
name: github-pages
94100
url: ${{ steps.deployment.outputs.page_url }}
95101
steps:
96-
- name: Configure GitHub Pages
97-
uses: actions/configure-pages@v4
98-
99102
- name: Deploy to GitHub Pages
100103
id: deployment
101104
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)