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