Skip to content

Merge pull request #2 from Privado-Inc/release/gh_packages #2

Merge pull request #2 from Privado-Inc/release/gh_packages

Merge pull request #2 from Privado-Inc/release/gh_packages #2

Workflow file for this run

name: Release
on:
push:
branches: [master, main]
tags: ["*"]
jobs:
release:
concurrency: release
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: apt-get update
run: sudo apt-get update
- name: Install gnupg
run: sudo apt update && sudo apt install -y gnupg
- name: Import GPG key
run: echo $PGP_SECRET | base64 --decode | gpg --batch --import
env:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 19
- uses: actions/cache@v2
with:
path: |
~/.sbt
~/.coursier
key: ${{ runner.os }}-sbt-${{ hashfiles('**/build.sbt') }}
- run: sbt +test ciReleaseTagNextVersion ciReleaseSonatype
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}