diff --git a/.github/workflows/aws-preview.yml b/.github/workflows/aws-preview.yml index c144f78d..46b6cae8 100644 --- a/.github/workflows/aws-preview.yml +++ b/.github/workflows/aws-preview.yml @@ -1,13 +1,10 @@ name: Deploy Backend to Preview ECS on: - push: - branches: ["main"] - paths: - - server/** pull_request: branches: [ "main" ] paths: + - .github/workflows/aws-preview.yml - server/** - petercat_utils/** - subscriber/** diff --git a/.github/workflows/aws-prod.yml b/.github/workflows/aws-prod.yml index 2712d540..922d0aad 100644 --- a/.github/workflows/aws-prod.yml +++ b/.github/workflows/aws-prod.yml @@ -3,6 +3,11 @@ name: Deploy Backend to Product ECS on: push: branches: ["main"] + paths: + - .github/workflows/aws-prod.yml + - server/** + - petercat_utils/** + - subscriber/** env: AWS_REGION: ap-northeast-1