1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-02 21:11:22 +00:00
qb64/.ci/deploy.ps1

13 lines
804 B
PowerShell
Raw Normal View History

$Bucket = "qb64"
2021-02-02 11:39:11 +00:00
$Timestamp = (Get-Date).ToUniversalTime().ToString("yyyy-MM-dd-HH-mm-ss")
$Filename = "qb64_development_win-${Env:PLATFORM}.7z"
2021-12-23 12:13:09 +00:00
# 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
2021-12-23 12:17:45 +00:00
$Dirname = "qb64"
2021-02-02 11:39:11 +00:00
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