forked from PowerNukkit/PowerNukkit
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (30 loc) · 1020 Bytes
/
maven.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: PowerNukkit v1.X
on: [push,pull_request]
jobs:
build:
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@v1
with:
submodules: true
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: mvn --no-transfer-progress -B package -DskipTests=false -Darguments="-Dmaven.javadoc.skip=true"
- name: Rename artifacts
run: mv target/powernukkit-*-shaded.jar target/powernukkit.jar
- name: Archive artifacts
uses: actions/upload-artifact@v1
if: success()
with:
name: PowerNukkit
path: target/powernukkit.jar