Skip to content

Commit 1911e55

Browse files
authored
update publish to maven setup (#112)
Signed-off-by: Krzysztof Chmielewski <[email protected]>
1 parent eb419c1 commit 1911e55

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/publish.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,20 @@ env:
1313
jobs:
1414
build:
1515
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
packages: write
1619
steps:
17-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
1821

1922
- name: Check release tag match # ... and fail fast if they do not
2023
run: diff <(echo "${{ github.ref_name }}") <(echo "$(mvn -B help:evaluate -Dexpression=project.version -q -DforceStdout)")
2124

2225
- name: Set up JDK 11
23-
uses: actions/setup-java@v3
26+
uses: actions/setup-java@v4
2427
with:
2528
java-version: '11'
26-
distribution: 'adopt'
29+
distribution: 'temurin'
2730
cache: maven
2831

2932
- name: Build
@@ -34,10 +37,10 @@ jobs:
3437
mvn $MAVEN_CLI_OPTS $JAVA_ADDITIONAL_OPTS test integration-test
3538
3639
- name: Set up Apache Maven Central
37-
uses: actions/setup-java@v3
40+
uses: actions/setup-java@v4
3841
with:
3942
java-version: '11'
40-
distribution: 'adopt'
43+
distribution: 'temurin'
4144
server-id: ossrh
4245
server-username: SONATYPE_USERNAME
4346
server-password: SONATYPE_PASSWORD

0 commit comments

Comments
 (0)