Skip to content

Commit b4c05ab

Browse files
author
Damian Staszewski
committed
deploy script changes
1 parent 8ad4ef7 commit b4c05ab

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ jdk:
33
- oraclejdk8
44

55
cache:
6-
directories:
6+
files:
77
- /tmp/.hirezsessions
8+
directories:
89
- ~/.m2/repository
910

1011
before_install:

deploying/deploy.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22
REPO_VERSION=$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
3-
if [[ ! -z $TRAVIS_TAG ] && [ $REPO_VERSION != '*-SNAPSHOT' ] && [ "$TRAVIS_BRANCH" != 'dev' ]] || [[ $REPO_VERSION == '*-SNAPSHOT' ] && [ "$TRAVIS_BRANCH" == 'dev' ]]; then
3+
if [ ! -z $TRAVIS_TAG ] && [ $REPO_VERSION != '*-SNAPSHOT' ] && [ "$TRAVIS_BRANCH" != 'dev' ]; then
4+
mvn deploy -P sign,build-extras --settings ./settings.xml
5+
elif [ $REPO_VERSION == '*-SNAPSHOT' ] && [ "$TRAVIS_BRANCH" == 'dev' ]; then
46
mvn deploy -P sign,build-extras --settings ./settings.xml
57
fi

deploying/pre-deploy.sh

100644100755
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
#!/usr/bin/env bash
2-
3-
if [ ! -z $TRAVIS_TAG ]; then
4-
openssl aes-256-cbc -K $encrypted_b20503c2b955_key -iv $encrypted_b20503c2b955_iv -in hirezapi.asc.enc -out hirezapi.asc -d
5-
gpg --fast-import hirezapi.asc
6-
fi
2+
openssl aes-256-cbc -K $encrypted_b20503c2b955_key -iv $encrypted_b20503c2b955_iv -in hirezapi.asc.enc -out hirezapi.asc -d
3+
gpg --fast-import hirezapi.asc

0 commit comments

Comments
 (0)