-
Notifications
You must be signed in to change notification settings - Fork 15
63 lines (51 loc) · 1.77 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
- name: Set up JDK 21
uses: actions/setup-java@v3.12.0
with:
java-version: '21'
distribution: 'zulu'
- name: Update version
run: mvn versions:set -DnewVersion=dev-${{ github.run_number }} -DprocessAllModules=true
- name: Build with Maven
run: mvn -B package --file pom.xml
# MiraiMC-Bukkit.jar
- name: Upload a Build Artifact - MiraiMC Bukkit
uses: actions/upload-artifact@v3.1.2
with:
name: "MiraiMC-Bukkit.jar"
path: MiraiMC-Bukkit/target/MiraiMC-Bukkit.jar
# MiraiMC-Bungee.jar
- name: Upload a Build Artifact - MiraiMC Bungee
uses: actions/upload-artifact@v3.1.2
with:
name: "MiraiMC-Bungee.jar"
path: MiraiMC-Bungee/target/MiraiMC-Bungee.jar
# MiraiMC-Sponge.jar
- name: Upload a Build Artifact - MiraiMC Sponge
uses: actions/upload-artifact@v3.1.2
with:
name: "MiraiMC-Sponge.jar"
path: MiraiMC-Sponge/target/MiraiMC-Sponge.jar
# MiraiMC-Nukkit.jar
- name: Upload a Build Artifact - MiraiMC Nukkit
uses: actions/upload-artifact@v3.1.2
with:
name: "MiraiMC-Nukkit.jar"
path: MiraiMC-Nukkit/target/MiraiMC-Nukkit.jar
# MiraiMC-Velocity.jar
- name: Upload a Build Artifact - MiraiMC Velocity
uses: actions/upload-artifact@v3.1.2
with:
name: "MiraiMC-Velocity.jar"
path: MiraiMC-Velocity/target/MiraiMC-Velocity.jar