forked from CloudNetService/CloudNet
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.16 KB
/
gradle.yml
File metadata and controls
48 lines (38 loc) · 1.16 KB
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
name: Gradle Github Actions
on:
- push
- pull_request
jobs:
build:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
- name: Setup java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '16'
check-latest: true
- name: Validate license headers
run: ./gradlew checkLicenses
- name: Test with Gradle
run: ./gradlew test
- name: Build with Gradle
run: ./gradlew jar
- name: Release ZIP
run: |
echo 'Creating CloudNet.zip file...';
mkdir -p temp/;
cp -r .template/* temp/;
cp LICENSE temp/license.txt;
mkdir temp/dev;
mkdir temp/dev/examples;
cp -r cloudnet-examples/src/main/java/de/dytanic/cloudnet/examples/* temp/dev/examples;
mkdir temp/plugins;
cp cloudnet-plugins/**/build/libs/*.jar temp/plugins/;
cp cloudnet-launcher/build/libs/launcher.jar temp/launcher.jar;
- uses: actions/upload-artifact@v2
with:
name: CloudNet-v3
path: temp/