diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index ced5527..770871a 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -77,3 +77,11 @@ jobs: # S3에 빌드된 파일 업로드 - name: Upload to S3 run: aws s3 cp --region ap-northeast-2 ./common.zip s3://$S3_BUCKET_NAME/ + + # Deploy + - name: Deploy + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: ${{ secrets.AWS_REGION }} + run: aws deploy create-deployment --application-name common --deployment-group-name common-group --file-exists-behavior OVERWRITE --s3-location bucket=$S3_BUCKET_NAME, bundleType=zip, key=common.zip --region $AWS_REGION