-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (36 loc) · 1.02 KB
/
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
39
40
41
42
43
44
name: build
on:
push:
branches:
- "**"
pull_request:
jobs:
build:
name: Build
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 17
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build
run: ./gradlew --no-daemon build
# TODO: Uncomment when we care about publishing artifacts
# - name: Get Short SHA
# id: sha
# run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
# - name: Publish Artifacts
# uses: actions/upload-artifact@v2
# with:
# name: ChatTriggers-artifacts-${{ steps.sha.outputs.sha_short }}
# path: |
# build/libs/*