Skip to content

Commit 9fb2b6e

Browse files
committed
Fix deploy phase
1 parent 2151cd1 commit 9fb2b6e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.travis.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,19 @@ script:
3636
- mvn surefire:test -Pintegration-tests
3737
after_success:
3838
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" -a "$TRAVIS_BRANCH" = "master" -a "$CASSANDRA_VERSION" = "2.1.16" ]; then mvn sonar:sonar -Dsonar.host.url=https://sonarqube.com -Dsonar.login=$SONAR_TOKEN -Dsonar.projectKey=tlp-cassandra-reaper -Dsonar.github.oauth=$GITHUB_TOKEN -Dsonar.github.repository=thelastpickle/cassandra-reaper; fi'
39+
before_deploy:
40+
- "mkdir cassandra-reaper-${TRAVIS_TAG}"
41+
- "mkdir cassandra-reaper-${TRAVIS_TAG}/target"
42+
- "cp -R bin cassandra-reaper-${TRAVIS_TAG}/"
43+
- "cp target/cassandra-reaper-*.jar cassandra-reaper-${TRAVIS_TAG}/target"
44+
- "cp -R resource cassandra-reaper-${TRAVIS_TAG}/"
45+
- "tar czf cassandra-reaper-${TRAVIS_TAG}-release.tar.gz cassandra-reaper-${TRAVIS_TAG}/"
3946
deploy:
4047
provider: releases
4148
api_key: $GITHUB_TOKEN
4249
file_glob: true
4350
file:
44-
- "target/cassandra*.jar"
45-
- "resource/*.yaml"
46-
- "bin/*"
47-
- "debian/*"
51+
- "cassandra-reaper-${TRAVIS_TAG}-release.tar.gz"
4852
skip_cleanup: true
4953
on:
5054
tags: true

0 commit comments

Comments
 (0)