-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (34 loc) · 1.01 KB
/
release.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
name: Release
on:
workflow_dispatch:
push:
branches: ['master', 'dev/release-build-test']
jobs:
Build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Install JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: sbt
- name: Install gnupg
run: sudo apt update && sudo apt install -y gnupg
- name: Import PGP secret
run: echo "${{ secrets.PGP_SECRET }}" | base64 --decode | gpg --batch --import
- name: Refresh version tag
run: git pull --tags
- name: Publish to Maven Repository
run: sbt clean ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}