deploy.sh 665 Bytes
Newer Older
Isaak Lim's avatar
Isaak Lim committed
1
#!/bin/bash
2 3 4 5 6 7 8 9

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

revision=${1:-master}

10
for name in "deploy-sdist" "deploy-2.7-macos" "deploy-3.5-macos" "deploy-2.7-linux" "deploy-3.5-linux" "deploy-3.7-VS2017"
Isaak Lim's avatar
Isaak Lim committed
11
do
12
  wget "https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python/-/jobs/artifacts/$revision/download?job=$name" -O "$name.zip"
Isaak Lim's avatar
Isaak Lim committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
  unzip "$name.zip"
  rm -f "$name.zip"
done

(
cd release
for name in $(find -type f -name "*-linux_*.whl")
do
  echo $name
  newname="$(echo $name | sed -e 's/-linux_/-manylinux1_/')";
  mv $name $newname
done

twine upload *.tar.gz
twine upload *.whl
)