Skip to content

Commit 672c235

Browse files
committed
Travis CI: rename .dmg to include version number
Closes #578.
1 parent c5209ca commit 672c235

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.ci/bintray-release.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"files": [
33
{
4-
"includePattern": "build/quaternion.dmg",
4+
"includePattern": "build/quaternion.*\.dmg",
55
"uploadPattern": "quaternion-VERSION_VALUE.dmg"
66
},
77
{

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ script:
8686
- cmake --build . --target all
8787
- export DESTDIR=$TRAVIS_BUILD_DIR/install
8888
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cmake --build . --target install; fi
89-
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then cmake --build . --target image; fi
89+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then cmake --build . --target image; mv quaternion.dmg quaternion-$VERSION.dmg; fi
9090
- popd
9191
# TODO: maybe move AppImage generation to CMakeLists.txt
9292
# (pre-wgetting AppImageKit to avoid CMakeList.txt dependency on Internet?)
@@ -127,7 +127,8 @@ deploy:
127127

128128
- provider: releases
129129
api_key: $GITHUB_API_KEY
130-
file: build/quaternion.dmg
130+
file_glob: true
131+
file: build/quaternion.*\.dmg
131132
skip_cleanup: true
132133
on:
133134
tags: true

0 commit comments

Comments
 (0)