Skip to content

Update sbt-pgp to 2.3.0 #41

Update sbt-pgp to 2.3.0

Update sbt-pgp to 2.3.0 #41

Workflow file for this run

name: build
on:
push:
branches:
- '**'
tags-ignore:
- '*.*'
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
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"