From 187b8d3798b69d4881d2bb667e4facd16729b115 Mon Sep 17 00:00:00 2001 From: liyang Date: Tue, 24 Mar 2026 17:19:18 +0800 Subject: [PATCH] ci: remove redundant directory level when uploading artifacts to S3 (#7852) Signed-off-by: liyang --- .github/scripts/upload-artifacts-to-s3.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/scripts/upload-artifacts-to-s3.sh b/.github/scripts/upload-artifacts-to-s3.sh index 310575c069..1ddf32044b 100755 --- a/.github/scripts/upload-artifacts-to-s3.sh +++ b/.github/scripts/upload-artifacts-to-s3.sh @@ -33,7 +33,7 @@ function upload_artifacts() { # └── greptime-darwin-amd64-v0.2.0.tar.gz find "$ARTIFACTS_DIR" -type f \( -name "*.tar.gz" -o -name "*.sha256sum" \) | while IFS= read -r file; do filename=$(basename "$file") - TARGET_URL="$PROXY_URL/$RELEASE_DIRS/$VERSION/$filename" + TARGET_URL="$PROXY_URL/$RELEASE_DIRS/$VERSION" curl -X PUT \ -u "$PROXY_USERNAME:$PROXY_PASSWORD" \ @@ -49,7 +49,7 @@ function update_version_info() { if [[ "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then echo "Updating latest-version.txt" echo "$VERSION" > latest-version.txt - TARGET_URL="$PROXY_URL/$RELEASE_DIRS/latest-version.txt" + TARGET_URL="$PROXY_URL/$RELEASE_DIRS" curl -X PUT \ -u "$PROXY_USERNAME:$PROXY_PASSWORD" \ @@ -62,7 +62,7 @@ function update_version_info() { echo "Updating latest-nightly-version.txt" echo "$VERSION" > latest-nightly-version.txt - TARGET_URL="$PROXY_URL/$RELEASE_DIRS/latest-nightly-version.txt" + TARGET_URL="$PROXY_URL/$RELEASE_DIRS" curl -X PUT \ -u "$PROXY_USERNAME:$PROXY_PASSWORD" \ -F "file=@latest-nightly-version.txt" \