From 445902b6763e0d477133457de46c60c6b0ed3851 Mon Sep 17 00:00:00 2001 From: Mark Callow Date: Sun, 10 Dec 2023 13:28:42 +0900 Subject: [PATCH] Seet nullglob in deploy to avoid passing *.whl to deploy script. --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3f9ef3e425..2b0849ed4d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -396,7 +396,8 @@ deploy: - provider: script edge: true - script: ruby ci_scripts/github_release.rb -s ${GITHUB_TOKEN} -r ${TRAVIS_REPO_SLUG} -c $REL_DESC_FILE -t ${TRAVIS_TAG} --overwrite true --draft true --prerelease true $BUILD_DIR/KTX-Software-*-* $BUILD_DIR/interface/python_binding/dist/*.whl + # nullglob is to force a null string when there are no *.whl files. + script: shopt -s nullglob; ruby ci_scripts/github_release.rb -s ${GITHUB_TOKEN} -r ${TRAVIS_REPO_SLUG} -c $REL_DESC_FILE -t ${TRAVIS_TAG} --overwrite true --draft true --prerelease true $BUILD_DIR/KTX-Software-*-* $BUILD_DIR/interface/python_binding/dist/*.whl on: tags: true #branch: master