diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 74ece1f..0b6b7bf 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -9,26 +9,28 @@ name: Java CI with Gradle on: push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] + branches: [ main ] -permissions: - contents: read +env: + AWS_REGION: ap-northeast-2 jobs: build: - - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - - name: Build with Gradle - uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0 - with: - arguments: build + - name: Check out source code + uses: actions/checkout@v2 + + + - name: JDK 17 setup + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'corretto' + + - name: gradlew chmod + run: chmod +x ./gradlew + + - name: Build with Gradle + run: ./gradlew clean build -x test diff --git a/.github/workfolws/ci.yml b/.github/workfolws/ci.yml deleted file mode 100644 index 67d326a..0000000 --- a/.github/workfolws/ci.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: CI - - -on: - push: - branches: [ main ] - -env: - AWS_REGION: ap-northeast-2 - -jobs: - build: - runs-on: ubuntu-20.04 - - steps: - - name: Check out source code - uses: actions/checkout@v2 - - - - name: JDK 17 setup - uses: actions/setup-java@v3 - with: - java-version: '17' - distribution: 'corretto' - - - name: gradlew chmod - run: chmod +x ./gradlew - - - name: Build with Gradle - run: ./gradlew clean build -x test - - - name: AWS credential setting - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-region: ${{ env.AWS_REGION }} - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} \ No newline at end of file