forked from rlf/uSkyBlock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (32 loc) · 889 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
language: java
branches:
only:
# Only build (and deploy) pushes tagged with a version number
- /^v2.*$/
env:
global:
secure: dGzZ9hl0ezUCYs72+Z4LUgtny0qsUn3HibpBKo4hriRPMY8EQqaJfi1ZDQTKr3ctjJMtQtcgnlC0BujEV+1W2tObjSJsCAdEbzKYZijwRXSK5jT1sua3EQScKYelpv0z4fd9LIYJJ95xwXMNMmAFSjdu3fRDkxtGgIIKbka8YiE=
notifications:
email: false
before_install:
# Change the maven-version to be the tag (for the API deploy)
# Skip the 'v'
- mvn versions:set -DnewVersion=${TRAVIS_TAG:1}
script:
- mvn -DskipTests=true install
deploy:
provider: releases
api-key: ${GITHUB_TOKEN}
file:
- target/uSkyBlock.jar
- target/uSkyBlock-api.jar
skip_cleanup: true
on:
tags: true
all_branches: true
after_success:
# Deploy API to the GitHub maven repo
- mvn -nsu deploy -DGITHUB_TOKEN=${GITHUB_TOKEN}
cache:
directories:
- $HOME/.m2