1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-07 19:10:25 +00:00
qb64/.ci/deploy.bat

14 lines
580 B
Batchfile
Raw Normal View History

2020-01-08 10:55:08 +00:00
@ECHO OFF
2020-01-08 09:33:09 +00:00
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
cd ..
2021-02-01 10:11:02 +00:00
set BUCKET=qb64-dev-builds
2020-01-08 10:24:26 +00:00
set TIMEX=%TIME: =0%
2020-01-08 11:41:04 +00:00
set archive=qb64_%DATE:~10,4%-%DATE:~4,2%-%DATE:~7,2%-%TIMEX:~0,2%-%TIMEX:~3,2%-%TIMEX:~6,2%_%GITHUB_SHA:~0,7%_win-%PLATFORM%.7z
7z a -xr@qb64\.ci\common-exclusion.list -xr@qb64\.ci\win-exclusion.list %archive% qb64
2021-02-02 10:02:55 +00:00
aws --output text --query 'Contents[].Key' s3api list-objects --bucket %BUCKET% --prefix win-%PLATFORM% > olddevbuilds.txt
2021-02-01 10:11:02 +00:00
aws s3 cp %archive% s3://%BUCKET%/win-%PLATFORM%/
2021-02-02 10:02:55 +00:00
for /F "tokens=*" %%G in (olddevbuilds.txt) do aws s3 rm s3://%BUCKET%/%%G