-
Notifications
You must be signed in to change notification settings - Fork 69
52 lines (42 loc) · 1.45 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build With Gradle
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up JDK 16
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '16'
cache: 'gradle'
- name: Build with Gradle
run: ./gradlew shadowJar
- name: Archive artifacts (Bungee)
uses: actions/upload-artifact@v2
if: success()
with:
name: BungeeTabListPlus Bungee
path: bootstrap-bungee/build/libs/BungeeTabListPlus-*-SNAPSHOT.jar
- name: Archive artifacts (Bukkit)
uses: actions/upload-artifact@v2
if: success()
with:
name: BungeeTabListPlus Bukkit Bridge
path: bootstrap-bukkit/build/libs/BungeeTabListPlus_BukkitBridge-*-SNAPSHOT.jar
- name: Archive artifacts (Fabric 1.16.3)
uses: actions/upload-artifact@v2
if: success()
with:
name: BungeeTabListPlus Fabric 1.16.3 Bridge
path: fabric-bridge-1.16.3/build/libs/btlp-fabric-bridge-*-SNAPSHOT.jar
- name: Archive artifacts (Fabric 1.17)
uses: actions/upload-artifact@v2
if: success()
with:
name: BungeeTabListPlus Fabric 1.17 Bridge
path: fabric-bridge-1.17/build/libs/btlp-fabric-bridge-*-SNAPSHOT.jar