Upload sha256 sum of files
This commit is contained in:
parent
f1af7504fb
commit
84a42c91a4
3 changed files with 21 additions and 3 deletions
|
@ -2,9 +2,15 @@
|
||||||
|
|
||||||
VERS=$(git describe --tags --abbrev=0)
|
VERS=$(git describe --tags --abbrev=0)
|
||||||
NAME=surreal-${VERS}.linux-amd64
|
NAME=surreal-${VERS}.linux-amd64
|
||||||
|
HASH=${NAME}.txt
|
||||||
FILE=${NAME}.tgz
|
FILE=${NAME}.tgz
|
||||||
|
|
||||||
GOOS=linux GOARCH=amd64 go build -v -ldflags "$(bash build/flags.sh)"
|
GOOS=linux GOARCH=amd64 go build -v -ldflags "$(bash build/flags.sh)"
|
||||||
tar -zcvf $FILE -s "#^#${NAME}/#" surreal
|
tar -zcvf $FILE -s "#^#${NAME}/#" surreal
|
||||||
|
|
||||||
|
echo $(shasum -a 256 $FILE | cut -f1 -d' ') > $HASH
|
||||||
|
|
||||||
aws s3 cp --region eu-west-2 --cache-control "no-store" ./$FILE s3://download.surrealdb.com/
|
aws s3 cp --region eu-west-2 --cache-control "no-store" ./$FILE s3://download.surrealdb.com/
|
||||||
rm -rf $FILE surreal
|
aws s3 cp --region eu-west-2 --cache-control "no-store" ./$HASH s3://download.surrealdb.com/
|
||||||
|
|
||||||
|
rm -rf $FILE $HASH surreal.exe surreal
|
||||||
|
|
|
@ -2,9 +2,15 @@
|
||||||
|
|
||||||
VERS=$(git describe --tags --abbrev=0)
|
VERS=$(git describe --tags --abbrev=0)
|
||||||
NAME=surreal-${VERS}.darwin-amd64
|
NAME=surreal-${VERS}.darwin-amd64
|
||||||
|
HASH=${NAME}.txt
|
||||||
FILE=${NAME}.tgz
|
FILE=${NAME}.tgz
|
||||||
|
|
||||||
GOOS=darwin GOARCH=amd64 go build -v -ldflags "$(bash build/flags.sh)"
|
GOOS=darwin GOARCH=amd64 go build -v -ldflags "$(bash build/flags.sh)"
|
||||||
tar -zcvf $FILE -s "#^#${NAME}/#" surreal
|
tar -zcvf $FILE -s "#^#${NAME}/#" surreal
|
||||||
|
|
||||||
|
echo $(shasum -a 256 $FILE | cut -f1 -d' ') > $HASH
|
||||||
|
|
||||||
aws s3 cp --region eu-west-2 --cache-control "no-store" ./$FILE s3://download.surrealdb.com/
|
aws s3 cp --region eu-west-2 --cache-control "no-store" ./$FILE s3://download.surrealdb.com/
|
||||||
rm -rf $FILE surreal
|
aws s3 cp --region eu-west-2 --cache-control "no-store" ./$HASH s3://download.surrealdb.com/
|
||||||
|
|
||||||
|
rm -rf $FILE $HASH surreal.exe surreal
|
||||||
|
|
|
@ -2,9 +2,15 @@
|
||||||
|
|
||||||
VERS=$(git describe --tags --abbrev=0)
|
VERS=$(git describe --tags --abbrev=0)
|
||||||
NAME=surreal-${VERS}.windows-amd64
|
NAME=surreal-${VERS}.windows-amd64
|
||||||
|
HASH=${NAME}.txt
|
||||||
FILE=${NAME}.tgz
|
FILE=${NAME}.tgz
|
||||||
|
|
||||||
GOOS=windows GOARCH=amd64 go build -v -ldflags "$(bash build/flags.sh)"
|
GOOS=windows GOARCH=amd64 go build -v -ldflags "$(bash build/flags.sh)"
|
||||||
tar -zcvf $FILE -s "#^#${NAME}/#" surreal
|
tar -zcvf $FILE -s "#^#${NAME}/#" surreal
|
||||||
|
|
||||||
|
echo $(shasum -a 256 $FILE | cut -f1 -d' ') > $HASH
|
||||||
|
|
||||||
aws s3 cp --region eu-west-2 --cache-control "no-store" ./$FILE s3://download.surrealdb.com/
|
aws s3 cp --region eu-west-2 --cache-control "no-store" ./$FILE s3://download.surrealdb.com/
|
||||||
rm -rf $FILE surreal
|
aws s3 cp --region eu-west-2 --cache-control "no-store" ./$HASH s3://download.surrealdb.com/
|
||||||
|
|
||||||
|
rm -rf $FILE $HASH surreal.exe surreal
|
||||||
|
|
Loading…
Reference in a new issue