From d03504012406744881ad550678a978d3a929ea22 Mon Sep 17 00:00:00 2001 From: Daewon Kang <96184691+Daewony@users.noreply.github.com> Date: Tue, 19 Mar 2024 17:10:17 +0900 Subject: [PATCH] Update build-and-deploy.yaml --- .github/workflows/build-and-deploy.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-deploy.yaml b/.github/workflows/build-and-deploy.yaml index 8a277f4..f818bbc 100644 --- a/.github/workflows/build-and-deploy.yaml +++ b/.github/workflows/build-and-deploy.yaml @@ -2,9 +2,8 @@ name: Deploy to CloudFront on: push: - branches: [ main ] - pull_request: - branches: [ main ] + branches: + - main jobs: @@ -13,13 +12,13 @@ jobs: steps: - name: Checkout source code - uses: actions/checkout@v2 # workflow에서 액세스할 수 있도록 저장소를 체크아웃 + uses: actions/checkout@v3 # workflow에서 액세스할 수 있도록 저장소를 체크아웃 - name: Install dependencies run: yarn install - name: Build - run: yarn run build + run: yarn build - name: S3 Deploy run: aws s3 sync ./build s3://bookpharmacy.store/ --acl bucket-owner-full-control # 현재 build된 폴더에 접근 후 s3 버킷인 csr-test-1-bucket에 파일 업로드