-
-
Notifications
You must be signed in to change notification settings - Fork 56
51 lines (44 loc) · 1.42 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build and upload jar
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Build with Gradle
uses: gradle/gradle-build-action@v2.4.2
with:
arguments: build test --stacktrace --scan
- name: Upload Legacy Build
uses: actions/upload-artifact@v3.1.3
with:
# Artifact name
name: AnarchyExploitFixes
# A file, directory or wildcard pattern that describes what to upload
path: AnarchyExploitFixesLegacy/build/libs/AnarchyExploitFixes-Legacy*.jar
if-no-files-found: error
- name: Upload Folia Build
uses: actions/upload-artifact@v3.1.3
with:
# Artifact name
name: AnarchyExploitFixes
# A file, directory or wildcard pattern that describes what to upload
path: AnarchyExploitFixesFolia/build/libs/AnarchyExploitFixes-Folia*.jar
if-no-files-found: error