diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2174c99..d286392 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -35,11 +35,12 @@ jobs: format: YYYY-MM-DDTHH-mm-ss utcOffset: "+09:00" - - name: Set artifact - run: echo "artifact=$(ls ./build/libs)" >> $GITHUB_ENV - - name: Generate deployment package - run: zip -r smunity.zip ./build/libs/${{env.artifact}} .ebextensions + run: | + mkdir -p deploy + cp build/libs/*.jar deploy/application.jar + cp -r .ebextensions deploy/.ebextensions + cd deploy && zip -r smunity.zip . - name: Beanstalk Deploy uses: einaregilsson/beanstalk-deploy@v20 @@ -48,7 +49,7 @@ jobs: aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} application_name: smunity environment_name: smunity-env - version_label: github-action-${{steps.current-time.outputs.formattedTime}} + version_label: github-action-${{ steps.current-time.outputs.formattedTime }} region: ap-northeast-2 - deployment_package: ./smunity.zip + deployment_package: deploy/smunity.zip wait_for_deployment: false