Skip to content

Commit

Permalink
Fix upload script
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Sep 14, 2016
1 parent 8f27cb2 commit 325cc9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .ci/upload.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
set -ex
OUTPUT_DIRECTORY="${OUTPUT_DIRECTORY:-$(pwd)/output}";
if [ ! -e ghr ]; then
wget "https://github.com/tcnksm/ghr/releases/download/v0.4.0/ghr_v0.4.0_linux_amd64.zip";
unzip ghr_v0.4.0_linux_amd64.zip;
chmod +x ghr
fi

CHADO_VERSION=$(find ${OUTPUT_DIRECTORY}/chado-*.sql.gz | grep -o 'chado-[/0-9.]*.sql.gz' | sed 's/chado-//g;s/\.sql\.gz//g;')
CHADO_VERSION=$(find "${OUTPUT_DIRECTORY}" | grep -o 'chado-[/0-9.]*.sql.gz' | sed 's/chado-//g;s/\.sql\.gz//g;')
./ghr -u erasche -r chado-schema-builder "${CHADO_VERSION}-jenkins${BUILD_ID}" "${OUTPUT_DIRECTORY}"

0 comments on commit 325cc9e

Please sign in to comment.