release #60
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 | |
| on: | |
| workflow_dispatch: # manually trigger this workflow | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| cache: sbt | |
| - uses: sbt/setup-sbt@v1 | |
| - run: sudo apt update && sudo apt install -y gnupg | |
| - run: echo $PGP_SECRET | base64 --decode | gpg --batch --import | |
| env: | |
| PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
| - name: Build, test and tag | |
| run: sbt -v clean test ciReleaseTagNextVersion | |
| - name: Deploy to sonatype and release to maven central | |
| run: sbt -v ciReleaseSonatype | |
| env: | |
| SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
| SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} |