Release #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'feat/**' #publish snapshots | |
- 'main' #also publish snapshots - useful before releasing | |
tags: | |
- '**' #publish a release | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
PGP_SECRET : ${{ secrets.GPG_SECRET }} | |
GPG_OWNERTRUST : ${{ secrets.GPG_OWNERTRUST }} | |
SONATYPE_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.NEXUS_USERNAME }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 21 | |
cache: sbt | |
- name: Tests | |
run: sbt test | |
- name: Configure GPG Key | |
run: | | |
echo $PGP_SECRET | base64 --decode | gpg --import -v --batch | |
- name: Configure GPG Ownertrust | |
run: | | |
echo -n "$GPG_OWNERTRUST" | base64 --decode | gpg --import-ownertrust | |
- name: Release | |
run: | | |
sbt ci-release |