travisci: add nightly release
This commit is contained in:
committed by
Steve Chavez
parent
5f3b581562
commit
8fd9a9ab5d
+18
-8
@@ -55,14 +55,24 @@ jobs:
|
||||
then
|
||||
echo 'No tag pushed. Skipping release.'
|
||||
else
|
||||
OWNER="$(echo "$TRAVIS_REPO_SLUG" | cut -f1 -d/)"
|
||||
REPO="$(echo "$TRAVIS_REPO_SLUG" | cut -f2 -d/)"
|
||||
START=$(echo $TRAVIS_TAG | cut -c2-)
|
||||
END='## \['
|
||||
BODY=$(sed -n "1,/$START/d;/$END/q;p" CHANGELOG.md)
|
||||
strip postgrest
|
||||
tar cJf postgrest-$TRAVIS_TAG-osx.tar.xz postgrest
|
||||
ghr -t $GITHUB_TOKEN -u $OWNER -r $REPO -b "$BODY"--replace $TRAVIS_TAG postgrest-$TRAVIS_TAG-osx.tar.xz
|
||||
owner="$(echo "$TRAVIS_REPO_SLUG" | cut -f1 -d/)"
|
||||
repo="$(echo "$TRAVIS_REPO_SLUG" | cut -f2 -d/)"
|
||||
if test $TRAVIS_TAG = "nightly"
|
||||
then
|
||||
date=$(date +'%F')
|
||||
sha=$(echo $TRAVIS_COMMIT | head -c7)
|
||||
suffix=$date-$sha
|
||||
strip postgrest
|
||||
tar cJf postgrest-nightly-$suffix-osx.tar.xz postgrest
|
||||
ghr -t $GITHUB_TOKEN -u $owner -r $repo --replace nightly postgrest-nightly-$suffix-osx.tar.xz
|
||||
else
|
||||
start=$TRAVIS_TAG
|
||||
end='## \['
|
||||
body=$(sed -n "1,/$start/d;/$end/q;p" CHANGELOG.md)
|
||||
strip postgrest
|
||||
tar cJf postgrest-$TRAVIS_TAG-osx.tar.xz postgrest
|
||||
ghr -t $GITHUB_TOKEN -u $owner -r $repo -b "$body"--replace $TRAVIS_TAG postgrest-$TRAVIS_TAG-osx.tar.xz
|
||||
fi
|
||||
fi
|
||||
|
||||
- name: Code Coverage
|
||||
|
||||
Reference in New Issue
Block a user