diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 1a6dbd1e..851da2d8 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -14,19 +14,19 @@ env: CODE_DEPLOY_DEPLOYMENT_GROUP_NAME: cvsgo-server-group jobs: - test_and_build: + deploy: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 - + - name: Set up JDK 17 uses: actions/setup-java@v3 with: java-version: '17' distribution: 'temurin' - + - name: Grant execute permission for gradlew run: chmod +x ./gradlew @@ -42,11 +42,6 @@ jobs: run: zip -qq -r ./$GITHUB_SHA.zip . shell: bash - deploy: - runs-on: ubuntu-latest - needs: test_and_build - - steps: - name: AWS Configure credentials uses: aws-actions/configure-aws-credentials@v1 with: @@ -56,7 +51,7 @@ jobs: - name: Upload to S3 run: aws s3 cp --region ap-northeast-2 ./$GITHUB_SHA.zip s3://${{ env.S3_BUCKET_NAME }}/${{ env.PROJECT_NAME }}/$GITHUB_SHA.zip - + - name: Deploy with AWS codeDeploy run: aws deploy create-deployment --application-name ${{ env.CODE_DEPLOY_APPLICATION_NAME }}