Skip to content

Commit af8157c

Browse files
committed
Updating github actions build.
1 parent 197243a commit af8157c

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

.github/workflows/build.yaml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
name: Build Artifacts
2-
on: [push, workflow_dispatch]
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- 'main'
6+
pull_request:
7+
workflow_dispatch:
38
jobs:
49
build:
510
runs-on: ubuntu-latest
6-
permissions:
7-
contents: read
8-
packages: write
911
steps:
10-
- uses: actions/checkout@v3
11-
- name: Set up JDK 17
12-
uses: actions/setup-java@v3
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-java@v4
1314
with:
14-
java-version: 17
15-
distribution: adopt
16-
architecture: x64
17-
cache: maven
18-
- name: Build
19-
run: mvn --batch-mode --update-snapshots test
15+
java-version: '21'
16+
distribution: 'temurin'
17+
- name: Run the Maven verify phase
18+
run: mvn --batch-mode --update-snapshots package

0 commit comments

Comments
 (0)