Skip to content

Commit ede3685

Browse files
Merge pull request #16 from timvaillancourt/travis_push_builds
use version file not
2 parents b109aaa + 7860b74 commit ede3685

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ jobs:
8181
on:
8282
tags: true
8383
- stage: deploy-github
84-
script: true
84+
script: MCB_VERSION=$(cat $TRAVIS_BUILD_DIR/VERSION)
8585
deploy:
8686
provider: releases
8787
skip_cleanup: true
8888
api_key: $GITHUB_OAUTH_TOKEN
8989
file:
90-
- $TRAVIS_BUILD_DIR/build/rpm/RPMS/x86_64/mongodb_consistent_backup-$TRAVIS_TAG-1.el7.centos.x86_64.rpm"
90+
- $TRAVIS_BUILD_DIR/build/rpm/RPMS/x86_64/mongodb_consistent_backup-$MCB_VERSION-1.el7.centos.x86_64.rpm"
9191
- $TRAVIS_BUILD_DIR/bin/mongodb-consistent-backup.el7.centos.x86_64
9292
- $TRAVIS_BUILD_DIR/bin/mongodb-consistent-backup.debian8.x86_64
9393
- $TRAVIS_BUILD_DIR/bin/mongodb-consistent-backup.debian9.x86_64

0 commit comments

Comments
 (0)