Skip to content

Commit

Permalink
update publish to maven setup (#112)
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Chmielewski <krzysiek.chmielewski@gmail.com>
  • Loading branch information
kristoffSC authored Aug 2, 2024
1 parent eb419c1 commit 1911e55
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,20 @@ env:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

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

- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
distribution: 'temurin'
cache: maven

- name: Build
Expand All @@ -34,10 +37,10 @@ jobs:
mvn $MAVEN_CLI_OPTS $JAVA_ADDITIONAL_OPTS test integration-test
- name: Set up Apache Maven Central
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
distribution: 'temurin'
server-id: ossrh
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
Expand Down

0 comments on commit 1911e55

Please sign in to comment.