Skip to content
Permalink
Browse files

Update Travis build file with release updates

  • Loading branch information...
abhinayagarwal committed Feb 14, 2019
1 parent 6de9cd4 commit afee385c596891b6f69490f6d241e0090af4d22e
Showing with 10 additions and 6 deletions.
  1. +4 −0 .ci/deploy.sh
  2. BIN .ci/sonatype.gpg.enc
  3. +6 −6 .travis.yml
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

openssl aes-256-cbc -K $encrypted_ad8c90635771_key -iv $encrypted_ad8c90635771_iv -in .ci/sonatype.gpg.enc -out sonatype.gpg -d
./gradlew uploadPublished --info -PsonatypeUsername=$SONATYPE_USERNAME -PsonatypePassword=$SONATYPE_PASSWORD -Psigning.keyId=$GPG_KEY_ID -Psigning.password=$GPG_KEY_PASSPHRASE -Psigning.secretKeyRingFile=sonatype.gpg
BIN +3.72 KB .ci/sonatype.gpg.enc
Binary file not shown.
@@ -1,5 +1,6 @@
# use java support
language: java

matrix:
fast_finish: true
include:
@@ -12,8 +13,7 @@ matrix:
sudo: false

# use linux as operating system
os:
- linux
os: linux

# Do not run travis install step `./gradlew assemble`
install: true
@@ -26,17 +26,17 @@ cache:
directories:
- $HOME/.gradle/caches/

# Deploy snapshots on every commit made to master branch
# Deploy releases on every tag push
deploy:
# Deploy snapshots on every commit made to master and 9.0.0 branch
- provider: script
script: ./gradlew uploadPublished -PsonatypeUsername=$SONATYPE_USERNAME -PsonatypePassword=$SONATYPE_PASSWORD
skip_cleanup: true
on:
all_branches: true # master and 9.0.0
all_branches: true

# Deploy releases on every tag push
- provider: script
script: ./gradlew uploadPublished -PsonatypeUsername=$SONATYPE_USERNAME -PsonatypePassword=$SONATYPE_PASSWORD
script: sh .ci/deploy.sh
skip_cleanup: true
on:
tags: true

0 comments on commit afee385

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.