Skip to content

Commit

Permalink
Switch to the new Gradle action in release.yml (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
petertrr authored Jun 11, 2024
1 parent edfab24 commit 9c7b184
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ jobs:
with:
distribution: temurin
java-version: 11
- uses: gradle/gradle-build-action@v2
- uses: gradle/actions/setup-gradle@v3
with:
arguments: publishToSonatype closeSonatypeStagingRepository
gradle-version: wrapper
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- run: ./gradlew publishToSonatype closeSonatypeStagingRepository
- name: Create Github Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -47,10 +48,11 @@ jobs:
with:
distribution: zulu
java-version: 11
- uses: gradle/gradle-build-action@v2
- uses: gradle/actions/setup-gradle@v3
with:
arguments: publishToSonatype closeSonatypeStagingRepository
gradle-version: wrapper
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- run: ./gradlew publishToSonatype closeSonatypeStagingRepository
release_windows:
name: Build release on Windows
runs-on: windows-latest
Expand All @@ -62,7 +64,8 @@ jobs:
with:
distribution: zulu
java-version: 11
- uses: gradle/gradle-build-action@v2
- uses: gradle/actions/setup-gradle@v3
with:
arguments: publishToSonatype closeSonatypeStagingRepository
gradle-version: wrapper
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- run: ./gradlew publishToSonatype closeSonatypeStagingRepository

0 comments on commit 9c7b184

Please sign in to comment.