Skip to content

Commit 954e06d

Browse files
committed
build: Update GH actions versions, auto-close Central staging
1 parent b8ce828 commit 954e06d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ jobs:
2424
- name: Check out
2525
uses: actions/checkout@v2
2626
- name: Setup JDK 11
27-
uses: actions/setup-java@v1
27+
uses: actions/setup-java@v2
2828
with:
29+
distribution: adopt
2930
java-version: 11
3031
- name: Validate Gradle wrapper
3132
uses: gradle/wrapper-validation-action@v1
@@ -37,7 +38,7 @@ jobs:
3738
if: "${{ always() }}"
3839
uses: actions/upload-artifact@v2
3940
with:
40-
name: test-results
41+
name: "test-results-${{ matrix.os }}"
4142
path: |
4243
build/reports/
4344
*/build/reports/
@@ -67,7 +68,7 @@ jobs:
6768
ORG_GRADLE_PROJECT_spongeSigningPassword: "${{ secrets.SPONGE_SIGNING_PASSWORD }}"
6869
- name: Publish with Gradle (release)
6970
if: "${{ runner.os == 'Linux' && env.STATUS == 'release' && github.event_name == 'release' }}"
70-
run: ./gradlew publish
71+
run: ./gradlew publish closeSonatypeStagingRepository
7172
env:
7273
ORG_GRADLE_PROJECT_githubPackagesUsername: "${{ github.actor }}"
7374
ORG_GRADLE_PROJECT_githubPackagesPassword: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)