diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df0db497..8509de31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,11 +20,12 @@ jobs: 11 17 21 + + - name: Set up Gradle + uses: gradle/actions/setup-gradle@v3 + - name: Build - uses: gradle/gradle-build-action@v3 - with: - gradle-version: wrapper - arguments: build publishToMavenLocal --stacktrace + run: ./gradlew build publishToMavenLocal --stacktrace env: ORG_GRADLE_PROJECT_personalGpgKey: ${{ secrets.ORG_GRADLE_PROJECT_personalGpgKey }} ORG_GRADLE_PROJECT_personalGpgPassword: ${{ secrets.ORG_GRADLE_PROJECT_personalGpgPassword }} @@ -54,12 +55,12 @@ jobs: with: name: MavenLocal path: ~/.m2/repository/dev/drewhamilton/poko/ + + - name: Set up Gradle + uses: gradle/actions/setup-gradle@v3 + - name: Build sample - uses: gradle/gradle-build-action@v3 - with: - build-root-directory: sample - gradle-version: wrapper - arguments: build --stacktrace + run: cd sample && ./gradlew build --stacktrace env: ci_java_version: ${{ matrix.ci_java_version }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 95fd7ec7..a06a35c3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,16 +19,14 @@ jobs: with: distribution: zulu java-version: 21 + + - name: Set up Gradle + uses: gradle/actions/setup-gradle@v3 + - name: Assemble for release - uses: gradle/gradle-build-action@v3 - with: - gradle-version: wrapper - arguments: assemble + run: ./gradlew assemble - name: Publish - uses: gradle/gradle-build-action@v3 - with: - gradle-version: wrapper - arguments: publish --no-configuration-cache + run: ./gradlew publish --no-configuration-cache env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_personalSonatypeIssuesUsername }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_personalSonatypeIssuesPassword }}