Skip to content

Commit a68e40f

Browse files
committed
test 1
1 parent d4db4ee commit a68e40f

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/build-docs.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,25 @@ on:
77
- fix/documentation-workflow
88
workflow_dispatch:
99

10+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
1016
jobs:
1117
docs:
1218
runs-on: ubuntu-latest
1319
steps:
1420
- uses: actions/[email protected]
1521
with:
1622
persist-credentials: false
23+
1724
- uses: ./.github/actions/dependencies
1825

26+
- name: Setup Pages
27+
uses: actions/configure-pages@v4
28+
1929
- name: Generate Docs
2030
run: |
2131
pdm run make gen-docs
@@ -28,19 +38,14 @@ jobs:
2838

2939
deploy:
3040
needs: docs
31-
32-
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
33-
permissions:
34-
pages: write
35-
id-token: write
41+
runs-on: ubuntu-latest
3642

3743
# Deploy to the github-pages environment
3844
environment:
3945
name: github-pages
4046
url: ${{ steps.deployment.outputs.page_url }}
4147

4248
# Specify runner + deployment step
43-
runs-on: ubuntu-latest
4449
steps:
4550
- name: Deploy to GitHub Pages
4651
id: deployment

0 commit comments

Comments
 (0)