Skip to content

Commit

Permalink
Fix release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinayagarwal committed Jul 21, 2020
1 parent bd229e2 commit d30549e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .ci/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ newVersion=${TRAVIS_TAG%.*}.$((${TRAVIS_TAG##*.} + 1))
sed -i "0,/^controlsfx_specification_version=$TRAVIS_TAG/s//controlsfx_specification_version=$newVersion/" controlsfx-build.properties
sed -i "0,/^artifact_suffix=/s//artifact_suffix=-SNAPSHOT/" controlsfx-build.properties

branch="master"
if [[ $TRAVIS_TAG != 8* ]]; then
branch="9.0.0"
fi
git commit controlsfx-build.properties -m "Upgrade version to $newVersion-SNAPSHOT"
git push https://abhinayagarwal:$GITHUB_PASSWORD@github.com/$TRAVIS_REPO_SLUG HEAD:master
git push https://abhinayagarwal:$GITHUB_PASSWORD@github.com/$TRAVIS_REPO_SLUG HEAD:$branch

# Update Javadoc
bash .ci/update-javadoc.sh "$TRAVIS_TAG"
4 changes: 4 additions & 0 deletions mavenPublish.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import java.time.Duration

apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'de.marcphilipp.nexus-publish'
Expand Down Expand Up @@ -63,4 +65,6 @@ nexusPublishing {
password = project.hasProperty('sonatypePassword') ? project.property('sonatypePassword') : ''
}
}
clientTimeout = Duration.ofMinutes(5)
connectTimeout = Duration.ofMinutes(5)
}

0 comments on commit d30549e

Please sign in to comment.