10 lines
333 B
Bash
Executable file
10 lines
333 B
Bash
Executable file
#!/bin/bash
|
|
|
|
VERS=$(git describe --tags --abbrev=0)
|
|
NAME=surreal-${VERS}.windows-amd64
|
|
FILE=${NAME}.tgz
|
|
|
|
GOOS=windows GOARCH=amd64 go build -v -ldflags "$(bash build/flags.sh)"
|
|
tar -zcvf $FILE -s "#^#${NAME}/#" surreal
|
|
aws s3 cp --region eu-west-2 --cache-control "no-store" ./$FILE s3://download.surrealdb.com/
|
|
rm -rf $FILE surreal
|