-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (34 loc) · 1.02 KB
/
gradle.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: Java CI with Gradle
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 17 ]
fail-fast: true
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up JDK ${{ matrix.java }}
uses: actions/[email protected]
with:
distribution: adopt
java-version: ${{ matrix.java }}
- name: Build Plugin
run: ./gradlew build
- name: Upload Bukkit plugin
uses: actions/upload-artifact@v4
with:
name: Bukkit plugin built on ${{ matrix.java }} JDK
path: "bukkit/build/libs/*.jar"
- name: Upload Bungeecord plugin
uses: actions/upload-artifact@v4
with:
name: Bungee plugin built on ${{ matrix.java }} JDK
path: "bungee/build/libs/*.jar"
- name: Upload Velocity plugin
uses: actions/upload-artifact@v4
with:
name: Velocity plugin built on ${{ matrix.java }} JDK
path: "velocity/build/libs/*.jar"