Skip to content

Commit

Permalink
Update GitHub build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
runeflobakk committed Jan 5, 2024
1 parent a8498f6 commit 8086ac4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '1.8', '11', '17' ]
java: [ '8', '17', '21' ]

name: build java ${{ matrix.java }}
steps:
- uses: actions/checkout@v4
- name: Set up java
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: temurin
cache: "maven"
- name: Build with Maven
run: mvn -B package --no-transfer-progress --file pom.xml
run: mvn -B verify --no-transfer-progress

makeversion:
if: github.ref != 'refs/heads/main'
Expand Down Expand Up @@ -45,7 +47,7 @@ jobs:
name: Deploy snapshot
steps:
- uses: actions/checkout@v4
- uses: digipost/action-maven-publish@1.1.0
- uses: digipost/action-maven-publish@v1
with:
sonatype_secrets: ${{ secrets.sonatype_secrets }}
release_version: ${{ needs.makeversion.outputs.version }}
Expand All @@ -60,7 +62,7 @@ jobs:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Release to Central Repository
uses: digipost/action-maven-publish@1.1.0
uses: digipost/action-maven-publish@v1
with:
sonatype_secrets: ${{ secrets.sonatype_secrets }}
release_version: ${{ needs.makeversion.outputs.version }}
Expand Down

0 comments on commit 8086ac4

Please sign in to comment.