ci(sbt-build): switch to seun pgp keys #115
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: | |
- feature/artifact-publish | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup JDK And SBT | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: "21" | |
cache: "sbt" | |
- name: Decrypt and Import GPG Key | |
run: | | |
gpgconf --kill gpg-agent || true | |
gpgconf --launch gpg-agent || true | |
echo "$GPG_SECRET" | gpg --batch --no-tty --import | |
env: | |
GPG_SECRET: ${{ secrets.GPG_PRIVATE_KEY }} | |
- name: Publish to Maven Repository | |
run: sbt ci-release | |
env: | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
GPG_SECRET: ${{ secrets.GPG_PRIVATE_KEY }} | |
PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
PGP_SECRET: ${{ secrets.GPG_PRIVATE_KEY }} | |
# - name: Publish to GitHub Packages | |
# run: sbt publish | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |