Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
update deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
hb0730 committed Aug 10, 2020
1 parent 02b3b6c commit 25f9003
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ jdk:
- openjdk8
before_install:
- export TZ=Asia/Shanghai
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
cache:
directories:
- $HOME/.m2/repository
Expand All @@ -14,7 +16,7 @@ jobs:
include:
- stage: test
name: "maven build"
script: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -Dpgp-skip=true
script: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true -Dpgp-skip=true -B -V
- stage: release
name: "maven install release"
script: echo "Deploying to GitHub releases ..." && pwd
Expand Down
2 changes: 1 addition & 1 deletion util/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ if [ -z $TRAVIS_TAG ]; then
echo "tag is null"
else
echo "Publishing Maven snapshot..."
mvn clean deploy --settings=util/settings.xml -DskipTests=true
mvn clean deploy --settings=util/settings.xml -DskipTests=true -B -U
fi
12 changes: 12 additions & 0 deletions util/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,16 @@
<password>${env.SONATYPE_PASSWORD}</password>
</server>
</servers>
<profiles>
<profile>
<id>sonatype-nexus-snapshots</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>${env.GPG_EXECUTABLE}</gpg.executable>
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
</properties>
</profile>
</profiles>
</settings>

0 comments on commit 25f9003

Please sign in to comment.