mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
feat: add latest version support for release builds (#178)
- Add automatic creation of latest version files for release and prerelease builds
- Simplify installation script by providing direct latest URLs
- Support rustfs-linux-{arch}-latest.zip naming convention
- Improve build artifact management and user experience
This commit is contained in:
@@ -363,6 +363,26 @@ jobs:
|
|||||||
echo "Uploading ${{ steps.package.outputs.package_file }} to $OSS_PATH..."
|
echo "Uploading ${{ steps.package.outputs.package_file }} to $OSS_PATH..."
|
||||||
$OSSUTIL_BIN cp "${{ steps.package.outputs.package_file }}" "$OSS_PATH" --force
|
$OSSUTIL_BIN cp "${{ steps.package.outputs.package_file }}" "$OSS_PATH" --force
|
||||||
|
|
||||||
|
# For release and prerelease builds, also create a latest version
|
||||||
|
if [[ "$BUILD_TYPE" == "release" ]] || [[ "$BUILD_TYPE" == "prerelease" ]]; then
|
||||||
|
# Extract platform and arch from package name
|
||||||
|
PACKAGE_NAME="${{ steps.package.outputs.package_name }}"
|
||||||
|
|
||||||
|
# Create latest version filename
|
||||||
|
# Convert from rustfs-linux-x86_64-v1.0.0 to rustfs-linux-x86_64-latest
|
||||||
|
LATEST_NAME=$(echo "$PACKAGE_NAME" | sed 's/-v[0-9].*$/-latest/')
|
||||||
|
LATEST_FILE="${LATEST_NAME}.zip"
|
||||||
|
|
||||||
|
# Copy the original file to latest version
|
||||||
|
cp "${{ steps.package.outputs.package_file }}" "$LATEST_FILE"
|
||||||
|
|
||||||
|
# Upload the latest version
|
||||||
|
echo "Uploading latest version: $LATEST_FILE to $OSS_PATH..."
|
||||||
|
$OSSUTIL_BIN cp "$LATEST_FILE" "$OSS_PATH" --force
|
||||||
|
|
||||||
|
echo "✅ Latest version uploaded: $LATEST_FILE"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "✅ Upload completed successfully"
|
echo "✅ Upload completed successfully"
|
||||||
|
|
||||||
# Build summary
|
# Build summary
|
||||||
|
|||||||
Reference in New Issue
Block a user