From b2ebb45bb2065050ad6c432a36d5ec65364caba8 Mon Sep 17 00:00:00 2001 From: Antoine Delia Date: Mon, 2 Sep 2024 17:32:46 +0200 Subject: [PATCH] chore: prevent deploying website if not on master branch --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7af1e9a..d5d914c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: