-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.05 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:
- '**'
tags-ignore:
- '*.*'
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3.11.0
with:
distribution: 'temurin'
java-version: '17'
cache: 'sbt'
gpg-private-key: ${{ secrets.PGP_PRIVATE_KEY }}
- name: Test
env:
CI_VERSION: ${{ github.ref }}
SBT_OPTS: '-Xmx2G'
run: sbt "; scripted"
- name: Publish
if: github.event_name == 'release'
env:
CI_VERSION: ${{ github.ref }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SBT_OPTS: '-Xmx2G'
run: |
sbt "; sonatypeBundleClean; publishSigned; sonatypeBundleRelease"
sed -i -e 's/organization := "de.lhns"/organization := "de.lolhens"/' build.sbt
sbt "; sonatypeBundleClean; publishSigned; sonatypeBundleRelease"