Skip to content

Commit 6188a32

Browse files
committed
ci: the documentation is deployed from master alone
A manual run against a branch built the site and then published it, because the deploy job followed the build with no condition on the ref. The build is the part worth running from a branch; the publish is not.
1 parent 3347a2d commit 6188a32

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
deploy:
5757
name: 🚀 Deploy to GitHub Pages
5858
needs: build
59+
if: github.ref == 'refs/heads/master'
5960
runs-on: ubuntu-latest
6061
environment:
6162
name: github-pages

0 commit comments

Comments
 (0)