Skip to content

Commit 9550d1d

Browse files
committed
Upgrade Git workflow actions
1 parent 9c42c46 commit 9550d1d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
java: [ '1.8', '11' ]
10+
java: [ '8', '11' ]
1111

1212
name: build java ${{ matrix.java }}
1313
steps:
14-
- uses: actions/checkout@v1
15-
- name: Set up java
16-
uses: actions/setup-java@v1
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-java@v3.6.0
1716
with:
17+
distribution: temurin
1818
java-version: ${{ matrix.java }}
19+
cache: "maven"
1920
- name: Build with Maven
20-
run: mvn -B package --no-transfer-progress --file pom.xml
21+
run: mvn -B clean verify --no-transfer-progress --show-version
2122

2223
makeversion:
2324
if: github.ref != 'refs/heads/main'
@@ -44,7 +45,7 @@ jobs:
4445
name: Deploy snapshot
4546
steps:
4647
- uses: actions/checkout@v1
47-
- uses: digipost/action-maven-publish@1.1.0
48+
- uses: digipost/action-maven-publish@1.3.0
4849
with:
4950
sonatype_secrets: ${{ secrets.sonatype_secrets }}
5051
release_version: ${{ needs.makeversion.outputs.version }}
@@ -59,7 +60,7 @@ jobs:
5960
- name: Check out Git repository
6061
uses: actions/checkout@v1
6162
- name: Release to Central Repository
62-
uses: digipost/action-maven-publish@1.1.0
63+
uses: digipost/action-maven-publish@1.3.0
6364
with:
6465
sonatype_secrets: ${{ secrets.sonatype_secrets }}
6566
release_version: ${{ needs.makeversion.outputs.version }}

0 commit comments

Comments
 (0)