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