-
Notifications
You must be signed in to change notification settings - Fork 17
40 lines (40 loc) · 1.17 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
name: Donkey CI
on:
push:
branches:
- master
- "[0-9]+.[0-9]+.[0-9]+"
pull_request:
branches:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 3
env:
BRANCH: ${{ github.head_ref }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: "Restore Maven Repository from Cache"
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: "Java & Clojure Tests and Coverage Report"
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
run: ./build-ci.sh
- name: "Deploy Snapshot"
env:
CLOJARS_USERNAME: appsflyer
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }}
if: github.event_name != 'pull_request' && env.CLOJARS_PASSWORD != ''
run: |
export BRANCH="${BRANCH:-$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')}"
./.ci.deploy.snapshot.sh