Skip to content

Commit 61c21af

Browse files
committed
fix: correct Maven Central deployment name encoding
1 parent 9e576f0 commit 61c21af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/maven-central.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
VERSION="${RELEASE_REF#v}"
8080
AUTH="$(printf '%s:%s' "$CENTRAL_USERNAME" "$CENTRAL_PASSWORD" | base64 -w0)"
8181
DEPLOYMENT_NAME="CoreLink Identity ${RELEASE_REF}"
82-
ENCODED_NAME="$(python3 -c 'import os, urllib.parse; print(urllib.parse.quote(os.environ["DEPLOYMENT_NAME"], safe=""))' DEPLOYMENT_NAME="$DEPLOYMENT_NAME")"
82+
ENCODED_NAME="$(DEPLOYMENT_NAME="$DEPLOYMENT_NAME" python3 -c 'import os, urllib.parse; print(urllib.parse.quote(os.environ["DEPLOYMENT_NAME"], safe=""))')"
8383
UPLOAD_URL="https://central.sonatype.com/api/v1/publisher/upload?name=${ENCODED_NAME}&publishingType=${PUBLISHING_TYPE}"
8484
8585
DEPLOYMENT_ID="$(curl --fail-with-body --silent --show-error \

0 commit comments

Comments
 (0)