Skip to content

Commit

Permalink
fix CI for creating keys and sign
Browse files Browse the repository at this point in the history
  • Loading branch information
tvichiansakd committed Sep 16, 2024
1 parent 772fb99 commit fc604d7
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/scalabuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,15 @@ jobs:
working-directory: scalatest-listener
run: sbt compile

- name: Import GPG key
- name: Prepare and Signed Artifact
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_SECRET_KEY }}
working-directory: scalatest-listener
run: |
echo "$GPG_PRIVATE_KEY" | gpg --import --batch
- name: Signed Artifact
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
working-directory: scalatest-listener
run: |
echo "$GPG_PRIVATE_KEY" | gpg --import --batch
mkdir -p $HOME/.sbt/gpg
echo "$GPG_PRIVATE_KEY" > HOME/.sbt/gpg/secring.asc
sbt publishSigned
ls target/sonatype-staging
Expand Down

0 comments on commit fc604d7

Please sign in to comment.