-
Notifications
You must be signed in to change notification settings - Fork 43
45 lines (39 loc) · 1.15 KB
/
publish.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
name: Publish
on:
push:
tags: ["*"]
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-22.04
timeout-minutes: 15
environment: "Generally Available"
env:
SBT_OPTS: "-Dfile.encoding=UTF-8 -Duser.timezone=UTC -Xmx2g"
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
- name: Cache Coursier
uses: coursier/cache-action@v6.4
- name: Setup JDK
uses: coursier/setup-action@v1.3.4
with:
jvm: adoptium:1.11
- name: Import GPG Key
timeout-minutes: 10
env:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
run: |
echo $PGP_SECRET | base64 --decode | gpg --batch --import
- name: Test and Publish JARs
timeout-minutes: 15
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
run: |
sbt -v "+test; +publishSigned; sonatypeBundleRelease;"