From fb2a7fa4366bbf2b647617833857dd77862f3d70 Mon Sep 17 00:00:00 2001 From: RakHyeon-Sung <44660991+racgoo@users.noreply.github.com> Date: Thu, 8 Aug 2024 12:16:10 +0900 Subject: [PATCH] Create deploy.yml S3 CI/CD --- .github/workflows/deploy.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..484536c0 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,29 @@ +name: React build +on: + push: + branches: + - deploy + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout source code. + uses: actions/checkout@deploy + + - name: Install Dependencies + run: yarn + + - name: Build + run: yarn run build:admin + + - name: Deploy + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + run: | + aws s3 cp \ + --recursive \ + --region ap-northeast-2 \ + packages/admin/dist s3://yangbong-front # 올바른 경로 설정 +