-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 1.1 KB
/
build.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
36
name: Build
on: [ push,pull_request ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 20
uses: actions/setup-java@v4
with:
java-version: '20'
distribution: 'adopt'
- name: Build Cirrus API
run: mvn install:install-file -Dfile=ace-velocity/libs/cirrus-api-3.0.0-SNAPSHOT.jar -DgroupId=dev.simplex.cirrus -DartifactId=cirrus-api -Dversion=3.0.0-SNAPSHOT -Dpackaging=jar -DgeneratePom=true
- name: Build Cirrus Velocity
run: mvn install:install-file -Dfile=ace-velocity/libs/cirrus-velocity-3.0.0-SNAPSHOT.jar -DgroupId=dev.simplex.cirrus -DartifactId=cirrus-velocity -Dversion=3.0.0-SNAPSHOT -Dpackaging=jar -DgeneratePom=true
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: ace-prod
path: |
ace-spigot/target/ace-spigot.jar
ace-velocity/target/ace-velocity.jar