-
-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (30 loc) · 1.09 KB
/
build-workflow.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
name: Build Hurricane
on: push
jobs:
build-job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Prepare NMS 1.17 mappings
run: mvn ca.bkaw:paper-nms-maven-plugin:1.2:init -pl :nms-1_17_R1
- name: Prepare NMS 1.18 mappings
run: mvn ca.bkaw:paper-nms-maven-plugin:1.2:init -pl :nms-1_18_R1
- name: Prepare NMS 1.18.2 mappings
run: mvn ca.bkaw:paper-nms-maven-plugin:1.2:init -pl :nms-1_18_R2
- name: Prepare NMS 1.19.2 mappings
run: mvn ca.bkaw:paper-nms-maven-plugin:1.2:init -pl :nms-1_19_R1
- name: Prepare NMS 1.19.3 mappings
run: mvn ca.bkaw:paper-nms-maven-plugin:1.2:init -pl :nms-1_19_R2
- name: Build with Maven
run: mvn -B package -T 2C
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: spigot/target/Hurricane.jar