Skip to content

Commit ceff817

Browse files
authored
Implement simple GitHub CI (#420)
Provides a simple GitHub Actions powered CI, that builds on every PR and merge to main, and provides downloadable repository zips for testing or deployment.
1 parent e8a933a commit ceff817

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Java CI
2+
3+
on: [push,pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v3
11+
12+
- name: Set up JDK 17
13+
uses: actions/setup-java@v3
14+
with:
15+
java-version: '17'
16+
distribution: 'adopt'
17+
18+
- name: Build with Maven
19+
run: mvn --batch-mode --update-snapshots package
20+
21+
- uses: actions/upload-artifact@v3
22+
with:
23+
name: repository
24+
path: repo/target/repository/

0 commit comments

Comments
 (0)