We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb3a558 commit 42e4c5eCopy full SHA for 42e4c5e
.github/workflows/build.yml
@@ -4,6 +4,8 @@ on:
4
push:
5
branches:
6
- main
7
+ tags:
8
+ - 'v*'
9
pull_request:
10
11
@@ -13,7 +15,6 @@ on:
13
15
14
16
jobs:
17
build:
-
18
runs-on: ubuntu-latest
19
20
steps:
@@ -27,3 +28,21 @@ jobs:
27
28
env:
29
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
30
run: sbt test
31
+
32
+ publish:
33
+ runs-on: ubuntu-latest
34
+ needs: build
35
+ timeout-minutes: 10
36
+ if: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')}}
37
38
+ steps:
39
+ - uses: actions/checkout@v2
40
+ - uses: coursier/cache-action@v3
41
+ - name: Set up JDK 1.8
42
+ uses: actions/setup-java@v1
43
+ with:
44
+ java-version: 1.8
45
+ - name: Publish library
46
+ env:
47
+ GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
48
+ run: sbt publish
.github/workflows/publish.yml
0 commit comments