chore(deps): dependencies 2024-11-18 (generated) #160
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: Publish jar | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Publish to Sonatype | |
runs-on: ubuntu-22.04 | |
if: "startsWith(github.event.head_commit.message, 'chore: release')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: zulu | |
java-version: 11 | |
cache: sbt | |
- name: Compile | |
run: sbt +compile | |
- name: Import GPG Key | |
uses: crazy-max/ghaction-import-gpg@v6 | |
with: | |
gpg_private_key: ${{ secrets.SIGNING_PRIVATE_KEY }} | |
passphrase: ${{ secrets.SIGNING_PRIVATE_KEY_PASSWORD }} | |
fingerprint: ${{ secrets.SIGNING_PRIVATE_KEY_FINGERPRINT }} | |
- name: List GPG keys | |
run: gpg -K | |
- name: Publish Signed Artifacts | |
env: | |
PGP_PASSPHRASE: ${{ secrets.SIGNING_PRIVATE_KEY_PASSWORD }} | |
run: sbt +publishSigned | |
- name: Release Bundle to Sonatype | |
env: | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} | |
run: sbt sonatypeBundleRelease |