Skip to content

Commit c2a1a76

Browse files
authored
ci: Update gh-pages.yml
1 parent ae53928 commit c2a1a76

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/gh-pages.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ jobs:
3434
name: 'github-pages'
3535
path: 'docs/_build/html'
3636
deploy:
37+
# Add a dependency to the build job
38+
needs: build
3739
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
3840
permissions:
39-
contents: read
4041
pages: write
4142
id-token: write
4243
# Deploy to the github-pages environment
@@ -48,4 +49,4 @@ jobs:
4849
steps:
4950
- name: Deploy to GitHub Pages
5051
id: deployment
51-
uses: actions/deploy-pages@v2 # or the latest "vX.X.X" version tag for this action
52+
uses: actions/deploy-pages@v2 # or the latest "vX.X.X" version tag for this action

0 commit comments

Comments
 (0)