diff --git a/.github/workflows/sbt-build.yml b/.github/workflows/sbt-build.yml new file mode 100644 index 0000000..39c2b7d --- /dev/null +++ b/.github/workflows/sbt-build.yml @@ -0,0 +1,32 @@ +name: Build & Publish + +on: workflow_dispatch + +jobs: + Build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup JDK And SBT + uses: actions/setup-java@v4 + with: + distribution: "temurin" + java-version: "21" + cache: "sbt" + + - name: Test + run: sbt test + + - name: Publish to Maven Repository + run: sbt ci-release + env: + PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + PGP_SECRET: ${{ secrets.GPG_SECRET }} + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + + - name: Publish to GitHub Packages + run: sbt publish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }