split, fix and cleanup predef and runBefore handling (#176) #20
This file contains hidden or 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 | |
concurrency: release | |
on: | |
push: | |
branches: [master, main] | |
tags: ["*"] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 19 | |
- name: Install sbt | |
if: matrix.os == 'macos-latest' | |
run: brew install sbt | |
- run: sudo apt update && sudo apt install -y gnupg | |
- run: echo $PGP_SECRET | base64 --decode | gpg --batch --import | |
env: | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.sbt | |
~/.coursier | |
key: ${{ runner.os }}-sbt-${{ hashfiles('**/build.sbt') }} | |
- run: sbt clean core/assembly test IntegrationTest/test ciReleaseTagNextVersion ciReleaseSonatype | |
env: | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} |