Skip to content

Commit efbcccd

Browse files
songmeoHuong Pham
andauthored
only allow push in main to deploy to gh-page (#146)
this prevents push in other branches for ex dev to deploy to gh-page --------- Co-authored-by: Huong Pham <[email protected]>
1 parent ff381b5 commit efbcccd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
environment:
5050
name: github-pages
5151
needs: build
52+
if: github.ref == 'refs/heads/main'
5253
runs-on: ubuntu-latest
5354
permissions:
5455
pages: write

0 commit comments

Comments
 (0)