Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jperedadnr committed Dec 5, 2024
1 parent db6efa4 commit 26532d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup java (tests)
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 22
distribution: 'oracle'
java-version: '22'
cache: 'maven'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN

- name: Build project (Linux/macOS)
if: runner.os != 'Windows'
Expand All @@ -32,16 +35,6 @@ jobs:
run: |
.\mvnw -B -ntp -Ptest verify -f rta
- name: Setup Java (distribution)
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'oracle'
cache: 'maven'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN

- name: Publish Snapshots
if: github.ref == 'refs/heads/main' && runner.os == 'Linux'
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup Java and Apache Maven
uses: actions/setup-java@v4
with:
java-version: 21
java-version: 22
distribution: 'oracle'
cache: 'maven'
server-id: ossrh
Expand Down

0 comments on commit 26532d6

Please sign in to comment.