Skip to content

Commit

Permalink
ci(sbt-build): verify resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Seun0925 authored and Seun0925 committed Sep 4, 2024
1 parent f126c91 commit a4af326
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/sbt-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,11 @@ jobs:
gpgconf --launch gpg-agent || true
echo "$PGP_SECRET" | base64 --decode | gpg --batch --no-tty --import
env:
PGP_SECRET: ${{ secrets.GPG_PRIVATE_KEY }}
PGP_SECRET: ${{ secrets.GPG_SECRET }}

- name: Verify Resources
run: |
echo "---------- Verifying GPG Keys ----------"
gpg --list-keys
GPG_FINGERPRINT=$(gpg --list-keys --with-colons | grep fpr | head -n 1 | cut -d: -f10)
echo "GPG_FINGERPRINT=$GPG_FINGERPRINT" >> $GITHUB_ENV
gpg --keyserver keyserver.ubuntu.com --recv-keys $GPG_FINGERPRINT
Expand All @@ -52,15 +51,15 @@ jobs:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
PGP_SECRET: ${{ secrets.GPG_PRIVATE_KEY }}
PGP_SECRET: ${{ secrets.GPG_SECRET }}

- name: Publish to Maven Repository
run: sbt -debug ci-release
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
PGP_SECRET: ${{ secrets.GPG_PRIVATE_KEY }}
PGP_SECRET: ${{ secrets.GPG_SECRET }}

# - name: Publish to GitHub Packages
# run: sbt publish
Expand Down

0 comments on commit a4af326

Please sign in to comment.