Skip to content

Commit

Permalink
Switch to gradle/actions/setup-gradle@v3 on CI (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
drewhamilton authored Jan 30, 2024
1 parent 8865fc9 commit b151cf3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}

Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit b151cf3

Please sign in to comment.