Updates to the deploy scripts

Only push 7z files (to reduce confusion)
Use tag name when possible
This commit is contained in:
zhupengfei
2020-06-24 15:38:29 +08:00
parent 732695f456
commit f0d0552139
5 changed files with 23 additions and 15 deletions
+1 -11
View File
@@ -7,17 +7,7 @@ cp README.md "$REV_NAME"
cp dist/threeSDumper.gm9 "$REV_NAME/dist"
tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$REV_NAME"
# Find out what release we are building
if [ -z $TRAVIS_TAG ]; then
RELEASE_NAME=head
else
RELEASE_NAME=$(echo $TRAVIS_TAG | cut -d- -f1)
fi
mv "$REV_NAME" $RELEASE_NAME
7z a "$REV_NAME.7z" $RELEASE_NAME
7z a "$REV_NAME.7z" $REV_NAME
# move the compiled archive into the artifacts directory to be uploaded by travis releases
mv "$ARCHIVE_NAME" artifacts/
+7 -1
View File
@@ -2,7 +2,13 @@
. .travis/common/pre-upload.sh
REV_NAME="threeSD-linux-${GITDATE}-${GITREV}"
# Find out what release we are building
if [ -z $TRAVIS_TAG ]; then
REV_NAME="threeSD-linux-${GITDATE}-${GITREV}"
else
REV_NAME="threeSD-linux-${TRAVIS_TAG}"
fi
ARCHIVE_NAME="${REV_NAME}.tar.xz"
COMPRESSION_FLAGS="-cJvf"
+7 -1
View File
@@ -2,7 +2,13 @@
. .travis/common/pre-upload.sh
REV_NAME="threeSD-macos-${GITDATE}-${GITREV}"
# Find out what release we are building
if [ -z $TRAVIS_TAG ]; then
REV_NAME="threeSD-macos-${GITDATE}-${GITREV}"
else
REV_NAME="threeSD-macos-${TRAVIS_TAG}"
fi
ARCHIVE_NAME="${REV_NAME}.tar.gz"
COMPRESSION_FLAGS="-czvf"