-
Notifications
You must be signed in to change notification settings - Fork 9
38 lines (33 loc) · 931 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
32
33
34
35
36
37
38
name: Build
env:
TERM: xterm-256color
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JDK_CURRENT: 11
##########################################################################
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
##########################################################################
jobs:
cancel-previous-runs:
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: styfle/cancel-workflow-action@0.7.0
with:
access_token: ${{ github.token }}
build:
runs-on: ubuntu-latest
# needs: [ build ]
if: ${{ github.event_name == 'push' }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ env.JDK_CURRENT }}
- name: Build Project
run: ./gradlew clean build distZip distTar