-
Notifications
You must be signed in to change notification settings - Fork 35
48 lines (46 loc) · 1.24 KB
/
sbt.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
45
46
47
48
name: Scala CI
# Support "official releases" on master, and release fixes on release/ prefixed branches
on:
push:
branches:
- 'master'
- 'releases/**'
- '!releases/**-alpha'
paths-ignore:
- 'docs/**'
- 'README.md'
pull_request:
branches:
- 'master'
# trigger on new branch/tag creation
create: []
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: 11
distribution: temurin
- name: Cache SBT ivy cache
uses: actions/cache@v1
with:
path: ~/.ivy2/cache
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/*.sbt') }}
- name: Cache SBT
uses: actions/cache@v1
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}
- name: Run tests
run: sbt ^test ^scripted
- name: Publish
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_PASS: ${{ secrets.BINTRAY_PASS }}
run: sbt ^publish