From 65e3d6f09995df79dd5bdb8e12e67fb7b2149c31 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Fri, 1 Mar 2019 15:58:19 -0800 Subject: [PATCH] Travis-CI: Use environment variables so others can maintain nightly builds. --- tools/deploy-nightly.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/deploy-nightly.sh b/tools/deploy-nightly.sh index 4a0ded5a..0bdf4f1b 100644 --- a/tools/deploy-nightly.sh +++ b/tools/deploy-nightly.sh @@ -1,10 +1,9 @@ #!/bin/bash -REPO=greatscottgadgets/hackrf-nightly PUBLICATION_BRANCH=master # set -x cd $HOME # Checkout the branch -git clone --branch=$PUBLICATION_BRANCH https://${GITHUB_TOKEN}@github.com/$REPO.git publish +git clone --branch=$PUBLICATION_BRANCH https://${GITHUB_TOKEN}@github.com/${REPO}.git publish cd publish # Update pages cp $ARTEFACT_BASE/$BUILD_NAME.tar.xz . @@ -22,13 +21,11 @@ echo "

HackRF Nightly Builds

" > index.html -URL=https://greatscottgadgets.github.io/hackrf-nightly - for commit in $COMMITS; do FILENAME=`find . -maxdepth 1 -name "*-$commit.tar.xz"` if [ "$FILENAME" != "" ]; then FN=${FILENAME:2} - echo "$FN
" >> index.html + echo "$FN
" >> index.html fi done