Skip to content

Commit 7f52d91

Browse files
committed
Chore: push 시에만 aws 버킷에 배포하도록 수정
1 parent 031d87c commit 7f52d91

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/dev_cicd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
- run: yarn build-dev
4040

4141
- name: deploy to s3
42+
if: github.event_name == 'push'
4243
uses: jakejarvis/s3-sync-action@master
4344
with:
4445
args: --delete

.github/workflows/prod_cicd.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
pull_request:
8-
branches:
9-
- main
107

118
jobs:
129
cicd:
@@ -39,6 +36,7 @@ jobs:
3936
- run: yarn build
4037

4138
- name: deploy to s3
39+
if: github.event_name == 'push'
4240
uses: jakejarvis/s3-sync-action@master
4341
with:
4442
args: --delete

0 commit comments

Comments
 (0)