mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-15 20:40:39 +00:00
ci: remove redundant directory level when uploading artifacts to S3 (#7852)
Signed-off-by: liyang <daviderli614@gmail.com>
This commit is contained in:
6
.github/scripts/upload-artifacts-to-s3.sh
vendored
6
.github/scripts/upload-artifacts-to-s3.sh
vendored
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user