Skip to content

Commit 933ac5a

Browse files
committed
Update github workflows
- Upgrade to setup-gradle@v4
1 parent 84ad752 commit 933ac5a

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ jobs:
3030
id: current_version
3131
run: |
3232
echo "$(cat gradle.properties | grep 'projectVersion=' | awk '{print $1}')" >> "$GITHUB_OUTPUT"
33+
- name: Setup Gradle
34+
uses: gradle/actions/setup-gradle@v4
3335
- name: Generate Docs
3436
id: build
35-
uses: gradle/actions/setup-gradle@v3
36-
with:
37-
arguments: docs
37+
run: ./gradlew docs
3838
- name: Deploy to GitHub Pages
3939
id: deployment
4040
uses: rainboyan/deploy-github-pages@v1.1.0

.github/workflows/gradle.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
with:
3030
distribution: 'adopt'
3131
java-version: ${{ matrix.java }}
32+
- name: Setup Gradle
33+
uses: gradle/actions/setup-gradle@v4
3234
- name: Run Build
3335
id: build
34-
uses: gradle/actions/setup-gradle@v3
35-
with:
36-
arguments: build -x findMainClass
36+
run: ./gradlew build -x findMainClass
3737
publish:
3838
if: github.event_name == 'push'
3939
needs: ["build"]
@@ -53,13 +53,14 @@ jobs:
5353
with:
5454
distribution: 'adopt'
5555
java-version: 17
56+
- name: Setup Gradle
57+
uses: gradle/actions/setup-gradle@v4
5658
- name: Generate secring file
5759
env:
5860
SECRING_FILE: ${{ secrets.SECRING_FILE }}
5961
run: echo $SECRING_FILE | base64 -d > ${{ github.workspace }}/secring.gpg
6062
- name: Publish to Sonatype OSSRH
6163
id: publish
62-
uses: gradle/actions/setup-gradle@v3
6364
env:
6465
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
6566
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
@@ -68,5 +69,4 @@ jobs:
6869
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
6970
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
7071
SECRING_FILE: ${{ secrets.SECRING_FILE }}
71-
with:
72-
arguments: -Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg :plugin:publishToSonatype closeAndReleaseSonatypeStagingRepository
72+
run: ./gradlew -Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg :plugin:publishToSonatype closeAndReleaseSonatypeStagingRepository

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
with:
4040
distribution: 'adopt'
4141
java-version: ${{ matrix.java }}
42+
- name: Setup Gradle
43+
uses: gradle/actions/setup-gradle@v4
4244
- name: Extract Target Branch
4345
id: extract_branch
4446
run: |
@@ -57,7 +59,6 @@ jobs:
5759
- name: Publish to Sonatype OSSRH
5860
id: publish
5961
if: steps.secring.outcome == 'success'
60-
uses: gradle/actions/setup-gradle@v3
6162
env:
6263
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
6364
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
@@ -66,5 +67,4 @@ jobs:
6667
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
6768
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
6869
SECRING_FILE: ${{ secrets.SECRING_FILE }}
69-
with:
70-
arguments: -Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg :plugin:publishToSonatype closeAndReleaseSonatypeStagingRepository
70+
run: ./gradlew -Psigning.secretKeyRingFile=${{ github.workspace }}/secring.gpg :plugin:publishToSonatype closeAndReleaseSonatypeStagingRepository

0 commit comments

Comments
 (0)