-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (36 loc) · 838 Bytes
/
build.yml
File metadata and controls
42 lines (36 loc) · 838 Bytes
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
name: Build
on:
push:
pull_request:
workflow_dispatch:
release:
types:
- created
jobs:
build:
name: Build
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v2.3.1
with:
java-version: 11
distribution: adopt
cache: gradle
- name: Build with Gradle
run: |
chmod +x ./gradlew
./gradlew build
- name: Upload Artifact
uses: actions/upload-artifact@v2.2.4
with:
path: build/libs/*.jar
- name: Upload Release
uses: fnkr/github-action-ghr@v1
if: github.event_name == 'release'
env:
GHR_PATH: build/libs/
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}