Skip to content

Commit 4082c89

Browse files
author
Addisu Z. Taddese
committed
Only deploy on master
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
1 parent 75d5c12 commit 4082c89

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343

4444
# Deployment job
4545
deploy:
46+
# The workflow upto this point is good for generating a preview,
47+
# but only commit to deploy if we are on the master branch (not a pull request).
48+
if: github.ref == 'refs/heads/master'
4649
environment:
4750
name: github-pages
4851
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)