-
Notifications
You must be signed in to change notification settings - Fork 0
Release Process
Maxi Rosson edited this page Sep 19, 2021
·
8 revisions
- https://central.sonatype.org/pages/ossrh-guide.html
- https://central.sonatype.org/pages/working-with-pgp-signatures.html
On your ~/.gradle/gradle.properties file add the following lines
GITHUB_WRITE_TOKEN={GITHUB OAUTH WRITE TOKEN}
GITHUB_READ_TOKEN={GITHUB OAUTH READ OKEN}
GITHUB_USER_EMAIL={YOUR GITHUB ACCOUNT EMAIL}
GITHUB_USER_NAME={YOUR GIT NAME}
On your ~/.profile, declare the following function:
dipienReleaseComponent() {
curl --request POST \
--url https://${CIRCLE_CI_TOKEN}:@circleci.com/api/v2/project/gh/dipien/$1/pipeline \
--header 'content-type: application/json' \
--data '{"branch":"production","parameters":{"api":true, "release":true}}'
echo "https://app.circleci.com/pipelines/github/dipien/$1?branch=production"
echo "https://repo.maven.apache.org/maven2/com/dipien/"
}
Install the Github Changelog Generator
sudo gem install github_changelog_generator -v 1.13.2
Merge the master branch to the production branch
Execute the following command:
dipienReleaseComponent ${REPO_NAME}
Merge the production branch to the master branch
On the master branch, increment the version executing one of the following commands:
./gradlew :incrementMajorVersion -PVERSION_INCREMENT_BRANCH=master
./gradlew :incrementMinorVersion -PVERSION_INCREMENT_BRANCH=master
Merge the production branch to the master branch
Verify the dependencies on Maven Central
- Wait 10 minutes
- Or wait a couple of hours