From 0d6b293fdb6cac08d13dada14697c4f67cd47a32 Mon Sep 17 00:00:00 2001 From: Jiyoon Kim Date: Sun, 14 Jan 2024 14:19:55 +0900 Subject: [PATCH] =?UTF-8?q?#3=20fix:=20Generate=20deployment=20package=20?= =?UTF-8?q?=EB=AA=85=EB=A0=B9=EC=96=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3002ad64..5ddab0bf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -48,15 +48,10 @@ jobs: utcOffset: "+09:00" - name: Generate deployment package - run: | - mkdir -p deploy - cp build/libs/howAboutTrip.jar deploy/application.jar - cp Procfile deploy/Procfile - cp -r .platform deploy/.platform - cd deploy && zip -r deploy.zip . + run: zip -r deploy.zip ./backend -x '*.git*' - - name: Beanstalk Deploy - uses: einaregilsson/beanstalk-deploy@v20 + - name: Deploy to EB + uses: einaregilsson/beanstalk-deploy@v21 with: aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }} aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -64,4 +59,4 @@ jobs: environment_name: How-about-trip-env version_label: github-action-${{steps.current-time.outputs.formattedTime}} region: ap-northeast-2 - deployment_package: deploy/deploy.zip \ No newline at end of file + deployment_package: deploy.zip \ No newline at end of file