1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-03 08:51:22 +00:00
qb64/.ci/deploy.sh
2021-12-23 22:38:03 +11:00

12 lines
468 B
Bash
Executable file

#!/bin/bash
OS=$1
TZ=UTC now=`date +"%F-%H-%M-%S"`
BUCKET=qb64
filename="qb64_development_${OS}.tar.gz"
dirname="qb64_${now}_`echo ${GITHUB_SHA} | sed 's/\(.......\).*$/\1/'`_${OS}"
cd ..
mv qb64 "${dirname}"
tar --create --auto-compress --file ${filename} --exclude-from=${dirname}/.ci/common-exclusion.list --exclude-from=${dirname}/.ci/$OS-exclusion.list ${dirname}
aws --endpoint-url ${S3_ENDPOINT} s3 cp ${filename} s3://${BUCKET}/development-builds/${filename}