Skip to content

Commit

Permalink
add option to specify a revision to publish in deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jsb committed Jul 6, 2018
1 parent 0a0c515 commit 1101939
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
#!/bin/bash

# usage:
# ./deploy.sh [revision]
#
# revision: tag, branch name, or commit to publish. Default is 'master'

revision=${1:-master}

for name in "deploy-sdist" "deploy-2.7-macos" "deploy-3.5-macos" "deploy-2.7-linux" "deploy-3.5-linux" "deploy-3.6-VS2017"
do
wget "https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python/-/jobs/artifacts/master/download?job=$name" -O "$name.zip"
wget "https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python/-/jobs/artifacts/$revision/download?job=$name" -O "$name.zip"
unzip "$name.zip"
rm -f "$name.zip"
done
Expand Down

0 comments on commit 1101939

Please sign in to comment.