38 lines
985 B
YAML
38 lines
985 B
YAML
|
name: Release
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
tags:
|
||
|
- v*
|
||
|
workflow_dispatch:
|
||
|
|
||
|
jobs:
|
||
|
publish_jvm:
|
||
|
name: Publish
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
with:
|
||
|
fetch-depth: 10000
|
||
|
# Fetch all tags so that sbt-dynver can find the previous release version
|
||
|
- run: git fetch --tags -f
|
||
|
# Install OpenJDK 11
|
||
|
- uses: actions/setup-java@v3
|
||
|
with:
|
||
|
distribution: 'zulu'
|
||
|
java-version: '11'
|
||
|
- name: Setup GPG
|
||
|
env:
|
||
|
PGP_SECRET: ${{ secrets.PGP_SECRET }}
|
||
|
run: echo $PGP_SECRET | base64 --decode | gpg --import --batch --yes
|
||
|
- name: Build bundle
|
||
|
env:
|
||
|
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
|
||
|
run: |
|
||
|
./sbt publishSigned
|
||
|
- name: Release to Sonatype
|
||
|
env:
|
||
|
SONATYPE_USERNAME: '${{ secrets.SONATYPE_USER }}'
|
||
|
SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASS }}'
|
||
|
run: ./sbt sonatypeBundleRelease
|