forked from XeContrast/FDPClientX-Reborn
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 799 Bytes
/
build.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
name: build
on:
- push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Java setup
uses: actions/setup-java@v2
with:
distribution: "zulu"
java-version: 8
cache: "gradle"
- name: Set outputs
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Build
run: ./gradlew build
- name: Rename build artifacts
run: mv build/libs/FDPClient-*.jar build/libs/FDPClient-build.jar
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: FDPClient
path: build/libs/FDPClient-build.jar