mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 22:36:31 +00:00
28 lines
1.0 KiB
PowerShell
28 lines
1.0 KiB
PowerShell
Write-Output "`n=== Starting Upload: Full Installer ZIP ==="
|
|
|
|
$uploadFolder = "AzaionSuiteBuilds"
|
|
Write-Output "[INFO] Target Google Drive folder: $uploadFolder"
|
|
Write-Output "[INFO] Looking for latest .zip matching 'AzaionSuite.Full.*.zip'..."
|
|
|
|
$fullZip = Get-ChildItem -Path . -Filter "AzaionSuite.Full.*.zip" |
|
|
Sort-Object LastWriteTime -Descending |
|
|
Select-Object -First 1
|
|
|
|
if ($fullZip) {
|
|
Write-Output "[FOUND] Full installer ZIP: $($fullZip.Name)"
|
|
Write-Output "[INFO] Full path: $($fullZip.FullName)"
|
|
Write-Output "[ACTION] Uploading file to Google Drive using rclone..."
|
|
|
|
rclone copy "$($fullZip.FullName)" "AzaionGoogleDrive:$uploadFolder" --progress
|
|
|
|
if ($LASTEXITCODE -eq 0) {
|
|
Write-Output "[SUCCESS] ✅ Full installer ZIP uploaded successfully."
|
|
} else {
|
|
Write-Output "[ERROR] ❌ Upload failed with exit code $LASTEXITCODE."
|
|
}
|
|
} else {
|
|
Write-Output "[WARNING] ⚠️ No matching Full installer ZIP found in current directory."
|
|
}
|
|
|
|
Write-Output "=== Upload Complete: Full Installer ZIP ===`n"
|