Skip to content

Commit 612228c

Browse files
committed
Add github action
Signed-off-by: Christopher White <[email protected]>
1 parent 4021eb9 commit 612228c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: build
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: checkout
12+
uses: actions/checkout@v3
13+
- name: setup
14+
uses: actions/setup-java@v3
15+
with:
16+
java-version: 8
17+
distribution: adopt
18+
- name: cache
19+
uses: actions/cache@v3
20+
with:
21+
path: ~/.m2/repository
22+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
23+
restore-keys: |
24+
${{ runner.os }}-maven-
25+
- name: build
26+
run: mvn install
27+
- name: artifact
28+
uses: actions/upload-artifact@v3
29+
with:
30+
name: AutoPruner-1.0.jar
31+
path: target/AutoPruner-1.0.jar
32+
if-no-files-found: error

0 commit comments

Comments
 (0)