mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-28 11:17:46 +00:00
12 lines
804 B
PowerShell
12 lines
804 B
PowerShell
$Bucket = "qb64"
|
|
$Timestamp = (Get-Date).ToUniversalTime().ToString("yyyy-MM-dd-HH-mm-ss")
|
|
$Filename = "qb64_development_win-${Env:PLATFORM}.7z"
|
|
# Ideally this would change the directory name to have useful information, but Windows gives an error
|
|
# "The process cannot access the file because it is being used by another process.", so this feature
|
|
# is disabled until someone can work out a better way.
|
|
# $Dirname = "qb64_${Timestamp}_$($Env:GITHUB_SHA.substring(0,7))_win-${Env:PLATFORM}"
|
|
# Rename-Item qb64 $Dirname
|
|
$Dirname = "qb64"
|
|
Set-Location ..
|
|
7z a "-xr@${Dirname}\.ci\common-exclusion.list" "-xr@${Dirname}\.ci\win-exclusion.list" $Filename $Dirname
|
|
aws --endpoint-url ${Env:S3_ENDPOINT} s3api put-object --bucket ${Bucket} --body $Filename --acl public-read --key development-builds/$Filename
|