mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
@@ -94,9 +94,10 @@ cat GCversionLinux.txt
|
||||
|
||||
### upload for testing
|
||||
if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_COMMIT_MESSAGE == *"[publish binaries]"* ]]; then
|
||||
aws s3 rm s3://goldencheetah-binaries/Linux --recursive # keep only the last one
|
||||
aws s3 cp --acl public-read $FINAL_NAME s3://goldencheetah-binaries/Linux/$FINAL_NAME
|
||||
aws s3 cp --acl public-read GCversionLinux.txt s3://goldencheetah-binaries/Linux/GCversionLinux.txt
|
||||
mkdir out
|
||||
mv $FINAL_NAME out
|
||||
mv GCversionLinux.txt out
|
||||
~/go/bin/ghr snapshot out
|
||||
else
|
||||
curl --max-time 300 -F "file=@$FINAL_NAME" https://temp.sh/upload
|
||||
fi
|
||||
|
||||
@@ -57,10 +57,7 @@ cd ${TRAVIS_BUILD_DIR}
|
||||
# GSL
|
||||
sudo apt-get -qq install libgsl-dev
|
||||
|
||||
# AWS S3 client to upload binaries
|
||||
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
|
||||
unzip -qq awscliv2.zip
|
||||
sudo ./aws/install
|
||||
aws --version
|
||||
# GHR to upload binaries to GitHub releases
|
||||
go install github.com/tcnksm/ghr@latest
|
||||
|
||||
exit
|
||||
|
||||
Reference in New Issue
Block a user