From 08b02a016b9151d5573a59b8863ba2e844a7f07f Mon Sep 17 00:00:00 2001 From: kingchenc Date: Sat, 31 Oct 2026 19:24:26 +0100 Subject: [PATCH] ci(release): use setup-java's *-env-var inputs setup-java deprecated server-username, server-password and gpg-passphrase in favour of server-username-env-var, server-password-env-var and gpg-passphrase-env-var, and warns on every release run that still uses them. The old names are aliases with the same meaning -- the name of the environment variable the Maven deploy step sets -- so the values stay as they are and settings.xml comes out identical. --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5f11d37..043fa52 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -960,10 +960,10 @@ jobs: distribution: temurin java-version: "25" server-id: central - server-username: CENTRAL_USERNAME - server-password: CENTRAL_PASSWORD + server-username-env-var: CENTRAL_USERNAME + server-password-env-var: CENTRAL_PASSWORD gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - gpg-passphrase: GPG_PASSPHRASE + gpg-passphrase-env-var: GPG_PASSPHRASE # Idempotent, like the npm and PyPI steps: a version that is already on # the repository is not deployed again. Central refuses a second # deployment of the same version, so without this check a re-run of a