Skip to content

Commit 75394fc

Browse files
authored
Merge pull request #107 from com-lihaoyi/fix-sonatype-publishing
Fix Sonatype publishing
2 parents 14d1add + 3554d79 commit 75394fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/actions.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ jobs:
3737
- name: Publish to Maven Central
3838
run: |
3939
if [[ $(git tag --points-at HEAD) != '' ]]; then
40-
echo "$SONATYPE_PGP_PRIVATE_KEY" | base64 --decode | gpg --import
40+
echo $SONATYPE_PGP_PRIVATE_KEY | base64 --decode > gpg_key
41+
gpg --import --no-tty --batch --yes gpg_key
42+
rm gpg_key
4143
./mill -i mill.scalalib.PublishModule/publishAll \
4244
--sonatypeCreds $SONATYPE_USER:$SONATYPE_PASSWORD \
4345
--gpgArgs --passphrase=$SONATYPE_PGP_PRIVATE_KEY_PASSWORD,--no-tty,--pinentry-mode,loopback,--batch,--yes,-a,-b \

0 commit comments

Comments
 (0)