-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (47 loc) · 1.29 KB
/
build-scenamatica.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
37
38
39
40
41
42
43
44
45
46
47
48
name: Build NMS with NMSAction
on:
workflow_call:
secrets:
token:
required: true
jobs:
build:
name: Build with Maven
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Change directory to scenamatica
run: cd Scenamatica
- name: Set up JDK 17
uses: actions/setup-java@v4
id: maven-cache
with:
java-version: 17
distribution: zulu
cache: maven
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.8.2
- name: Restore NMS cache
uses: actions/cache@v4
with:
path: nms-build/.m2
key: nms-maven
restore-keys: nms-maven
- name: Deploy NMS cache
if: steps.maven-cache.outputs.cache-hit != 'true'
run: |
mv -f nms-build/.m2/repository/repository $HOME/.m2/ -v
- name: Build with Maven
run: |
cd Scenamatica
chmod +x build.sh
./build.sh -D"jar.finalName=Scenamatica" -P debug
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: scenamatica
path: Scenamatica/ScenamaticaPlugin/target/Scenamatica.jar
retention-days: 1
if-no-files-found: error