-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 979 Bytes
/
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
name: Release
on:
push:
branches: [master, main, configure-sonatype]
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
cache: sbt
- name: Set up GPG
run: |
echo "${{ secrets.PGP_SECRET }}" | base64 --decode > private.key
gpg --import --batch private.key
rm private.key
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
- name: Run sbt publish
run: |
sbt sonatypeOpen "ru.d10xa"
sbt publishSigned
sbt sonatypeClose "ru.d10xa"
sbt sonatypeBundleRelease
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}