Skip to content

Commit

Permalink
chore: prevent deploying website if not on master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinedelia committed Sep 2, 2024
1 parent 774125f commit b2ebb45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:

- name: Deploy to AWS
uses: jakejarvis/s3-sync-action@master
if: steps.filter.outputs.web == 'true'
if: steps.filter.outputs.web == 'true' && github.ref == 'refs/heads/master' && github.event_name == 'push'
with:
args: --acl public-read --follow-symlinks --delete
env:
Expand Down

0 comments on commit b2ebb45

Please sign in to comment.