ci: add git sha with hours/minutes to nightly

This commit is contained in:
steve-chavez
2020-11-10 22:47:58 -05:00
committed by Steve Chavez
parent 814da058ec
commit b6d8d89b32
4 changed files with 9 additions and 19 deletions
+1 -3
View File
@@ -59,9 +59,7 @@ jobs:
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
suffix=$(git show -s --format="%cd-%h" --date="format:%Y-%m-%d-%H-%M")
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