diff --git a/.github/workflows/java-publish.yml b/.github/workflows/java-publish.yml index f95f693..91d893a 100644 --- a/.github/workflows/java-publish.yml +++ b/.github/workflows/java-publish.yml @@ -2,6 +2,8 @@ name: Compile and Deploy Java API to Maven Central on: push: + branches: + - keyple-less-client workflow_dispatch: jobs: @@ -24,8 +26,8 @@ jobs: - name: Install GPG secret key run: | - echo "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | base64 -d | gpg --batch --import - gpg --pinentry-mode loopback --passphrase "${{ secrets.OSSRH_GPG_SECRET_PASSWORD }}" --export-secret-keys > ~/.gradle/maven-central.gpg + cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import + gpg --pinentry-mode loopback --passphrase "${{ secrets.OSSRH_GPG_SECRET_PASSWORD }}" --export-secret-key 568FD16F857171A0EC6D2C40742C84722FD2B235 > ~/.gradle/maven-central.gpg gpg --list-secret-keys --keyid-format LONG - name: Update permissions