From d019839d910506199cf2792639fd14aa3d2e278a Mon Sep 17 00:00:00 2001 From: Alex Alexandrovich Date: Thu, 9 Nov 2023 20:11:54 +0300 Subject: [PATCH] Update gradle.yml --- .github/workflows/gradle.yml | 45 ++++++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 1566e16..ba0566b 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -13,23 +13,34 @@ on: pull_request: branches: [ "main" ] -permissions: - contents: write - jobs: - build: - + build-gradle-project: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 - with: - java-version: '17' - distribution: 'temurin' - - name: Change wrapper permissions - run: chmod +x ./gradlew - - name: Run the Gradle package task - uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 - with: - arguments: -b ci.gradle package + - name: Checkout project sources + uses: actions/checkout@v3 + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + - name: Run build with Gradle Wrapper + run: ./gradlew build + +# permissions: +# contents: write + +# jobs: +# build: + +# runs-on: ubuntu-latest + +# steps: +# - uses: actions/checkout@v4 +# - uses: actions/setup-java@v3 +# with: +# java-version: '17' +# distribution: 'temurin' +# - name: Change wrapper permissions +# run: chmod +x ./gradlew +# - name: Run the Gradle package task +# uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 +# with: +# arguments: -b ci.gradle package