From 4823e22a564257dcb6e0f476705b14b84efe1590 Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Tue, 14 Jan 2025 20:22:06 +0800 Subject: [PATCH] Update actions.yml --- .github/workflows/actions.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 8ca270e..d5d4a63 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -41,7 +41,7 @@ jobs: env: SONATYPE_PGP_PRIVATE_KEY: ${{ secrets.SONATYPE_PGP_PRIVATE_KEY }} SONATYPE_PGP_PRIVATE_KEY_PASSWORD: ${{ secrets.SONATYPE_PGP_PRIVATE_KEY_PASSWORD }} - SONATYPE_USER: ${{ secrets.SONATYPE_USER }} + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} LANG: "en_US.UTF-8" LC_MESSAGES: "en_US.UTF-8" @@ -55,17 +55,8 @@ jobs: - name: Publish to Maven Central run: | if [[ $(git tag --points-at HEAD) != '' ]]; then - echo $SONATYPE_PGP_PRIVATE_KEY | base64 --decode > gpg_key - gpg --import --no-tty --batch --yes gpg_key - rm gpg_key - ./mill -i mill.scalalib.PublishModule/publishAll \ - --sonatypeCreds $SONATYPE_USER:$SONATYPE_PASSWORD \ - --gpgArgs --passphrase=$SONATYPE_PGP_PRIVATE_KEY_PASSWORD,--no-tty,--pinentry-mode,loopback,--batch,--yes,-a,-b \ - --publishArtifacts __.publishArtifacts \ - --readTimeout 600000 \ - --awaitTimeout 600000 \ - --release true \ - --signed true + + ./mill -i mill.scalalib.PublishModule/ fi - name: Create GitHub Release id: create_gh_release