Skip to content

Commit 95150c1

Browse files
author
Denis Jelovina
committed
Add conditional deployment for protected default branch
1 parent b8a9d41 commit 95150c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/static.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ jobs:
6666

6767
# Single deploy job since we're just deploying
6868
deploy:
69+
# Only deploy from the protected default branch
70+
if: github.ref == 'refs/heads/master'
6971
needs: [build_pdf]
7072
environment:
7173
name: github-pages

0 commit comments

Comments
 (0)