Skip to content
This repository was archived by the owner on Jun 7, 2022. It is now read-only.

Commit a0c9829

Browse files
committed
Create workflow.yml
1 parent 6cda643 commit a0c9829

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/workflow.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CloudNet Build
2+
3+
on: [create, push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
java: ['8', '11', '12']
11+
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: Set up Java ${{ matrix.java }}
15+
uses: actions/setup-java@v1
16+
with:
17+
java-version: ${{ matrix.java }}
18+
architecture: x64
19+
- name: Build with Maven
20+
run: mvn clean test package
21+
- name: Repackage with Maven
22+
run: mvn package
23+
- name: Release ZIP
24+
run: |
25+
mkdir -p temp;
26+
cp -r .template/* temp/;
27+
cp cloudnet-core/target/CloudNet-Master.jar temp/CloudNet-Master/;
28+
cp cloudnet-wrapper/target/CloudNet-Wrapper.jar temp/CloudNet-Wrapper/;
29+
find cloudnet-tools/ -type f -name "cloudnet-tools-*.jar" -and -not -name "*-sources.jar" -and -not -name "*-javadoc.jar" -exec cp "{}" temp/tools/ ';'
30+
- uses: actions/upload-artifact@master
31+
with:
32+
name: CloudNet-V2
33+
path: temp/

0 commit comments

Comments
 (0)