Release #51
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: Build & Publish | |
on: | |
workflow_dispatch: | |
push: | |
branches: ['master'] | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup JDK And SBT | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: "21" | |
cache: "sbt" | |
- name: Compile & setup for publishing | |
run: sbt compile | |
env: | |
PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
PGP_SECRET: ${{ secrets.GPG_PRIVATE_KEY }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# - name: Publish to Maven Repository | |
# run: sbt ci-release | |
- name: Publish to GitHub Packages | |
run: sbt publish |