From 0e42baca9c75107705d3a2b6f2cc8ffc8a4c036f Mon Sep 17 00:00:00 2001 From: jinseohyun1228 <121755257+jinseohyun1228@users.noreply.github.com> Date: Fri, 8 Nov 2024 02:55:44 +0900 Subject: [PATCH] Update Deploy.yml --- .github/workflows/Deploy.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Deploy.yml b/.github/workflows/Deploy.yml index fc8108cc..a83213c3 100644 --- a/.github/workflows/Deploy.yml +++ b/.github/workflows/Deploy.yml @@ -27,9 +27,17 @@ jobs: unzip awscliv2.zip sudo ./aws/install + - name: Create a deployment package + run: | + mkdir deployment + cp -r boomerang/build/libs/* deployment/ + cp appspec.yml deployment/ + cd deployment + zip -r deployment-package.zip . + - 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 build/libs s3://home.manual + aws s3 cp deployment/deployment-package.zip s3://home.manual