File tree Expand file tree Collapse file tree 4 files changed +79
-27
lines changed Expand file tree Collapse file tree 4 files changed +79
-27
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ build :
7+ runs-on : ${{matrix.os}}
8+ strategy :
9+ matrix :
10+ os : ["ubuntu-20.04"]
11+
12+ steps :
13+ - uses : actions/checkout@v2
14+ - uses : olafurpg/setup-scala@v10
15+ with :
16+ java-version : 8
17+ - name : Mount caches
18+ uses : actions/cache@v2
19+ with :
20+ path : |
21+ ~/.sbt
22+ ~/.ivy2/cache
23+ ~/.cache/coursier
24+ key : ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}
25+ - name : Compile and test
26+ run : |
27+ sbt test
28+ shell : bash
29+ - name : Format check
30+ if : ${{ runner.os == 'Linux' }}
31+ run : |
32+ sbt scalafmtCheck test:scalafmtCheck scalafmtSbtCheck
33+ # Single final job for mergify.
34+ ci-passed :
35+ runs-on : ubuntu-latest
36+ needs : build
37+ steps :
38+ - run : ' :'
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches : [master]
6+ tags : ["v*"]
7+
8+ jobs :
9+ publish :
10+ runs-on : ubuntu-20.04
11+ steps :
12+ - uses : actions/checkout@v1
13+ - name : Scala caches
14+ uses : actions/cache@v2
15+ with :
16+ path : |
17+ ~/.sbt
18+ ~/.ivy2/cache
19+ ~/.cache/coursier
20+ key : ${{ runner.os }}-sbt-docs-${{ hashFiles('**/*.sbt') }}
21+ - uses : actions/setup-java@v1
22+ with :
23+ java-version : 8
24+ - uses : olafurpg/setup-gpg@v3
25+ if : startsWith(github.ref, 'refs/tags/v')
26+ - name : " Publish release: ${{github.ref}}"
27+ if : startsWith(github.ref, 'refs/tags/v')
28+ run : PUBLISH_ONLY=${GITHUB_REF%%/*} RELEASE=1 sbt ci-release
29+ env :
30+ PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
31+ PGP_SECRET : ${{ secrets.PGP_SECRET }}
32+ SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
33+ SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
34+ - name : " Publish snapshot: ${{github.ref}}"
35+ if : ${{!startsWith(github.ref, 'refs/tags/v')}}
36+ run : sbt ci-release
37+ env :
38+ PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
39+ PGP_SECRET : ${{ secrets.PGP_SECRET }}
40+ SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
41+ SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments