-
-
Notifications
You must be signed in to change notification settings - Fork 170
45 lines (36 loc) · 1.08 KB
/
pullrequest.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
name: Build Pull Request
on: [ 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 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Build
run: ./gradlew build
- name: Archive artifacts (Floodgate Bungee)
uses: actions/upload-artifact@v2
if: success()
with:
name: Floodgate Bungee
path: bungee/build/libs/floodgate-bungee.jar
- name: Archive artifacts (Floodgate Spigot)
uses: actions/upload-artifact@v2
if: success()
with:
name: Floodgate Spigot
path: spigot/build/libs/floodgate-spigot.jar
- name: Archive artifacts (Floodgate Velocity)
uses: actions/upload-artifact@v2
if: success()
with:
name: Floodgate Velocity
path: velocity/build/libs/floodgate-velocity.jar