| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
See releasetool for installation instructions. You will need python 3.6+ to run this tool.
Make sure the team agrees that it is time to release.
Look over all of the commits since the last release and make sure there are no breaking changes on the public surface. If there are any breaking changes, create and merge a new PR to revert the surface back.
Note: this should just be a scan of the public surface that would appear in Java doc. Implementation changes, README changes, and snippet changes can all be skipped for this check.
Verify that all unit and integration tests for the last commit have passed.
Run releasetool start. Select "minor" or "patch" for the release type. This will bump the artifact versions, ask you to edit release notes, and create the release pull request.
Note: be sure to make these notes nice as they will be used for the release notes as well.
To manually publish the artifacts to Maven (rather than using Kokoro), you will need to follow the "Additional setup for manual publishing" steps below and follow the instructions in the "Manually publishing" section.
Trigger the google-cloud-java/release/stage Kokoro job and wait for it to complete. This will stage the built artifacts and prepare them for publishing.
Look through the logs for the google-cloud-java/release/stage and find the staging repository ids used. They will look like comgoogleapi-XYZ and comgooglecloud-XYZ.
Promote or drop the staged repository.
a. To publish the staged repository, trigger the google-cloud-java/release/promote Kokoro job for each staging repository. To specify the staging repository, add an environment variable configuration with STAGING_REPOSITORY_ID=<staging repository id> from the UI. Note: thi will need to be run for each staging repository. It may take a few hours for the released versions to be available for users to download.
b. To drop (abort) the staged repository, trigger the google-cloud-java/release/drop Kokoro job with the same staging repository id configuration as if you were publishing.
Run git clean -x -f -d to put the repo in a clean state.
Locally build the repo by running mvn install -DskipTests.
Run python utilities/stage_sites.py. This script checks out gh-pages branch of the repository, builds the documentation site and javadocs, copies them to the branch and commits it. This script does not push the docs and it must be done manually on the later step. The script assumes that there is no directory called tmp_gh-pages in the repository root. If it is present, remove it before running the script.
Run cd tmp_gh-pages && git push && cd ...
(Optional) Run rm -rf tmp_gh-pages to remove the generated docs directory from your local machine.
Run releasetool start to bump the next snapshot version. Select "snapshot" when prompted for the release type. This will bump the artifact versions and create a pull request.
Review and submit the PR.
Install GNU Privacy Guard (GPG)
Generate the key gpg --gen-key
Find the ID of your public key gpg --list-secret-keys
Upload your public key to a public server: gpg --send-keys --keyserver hkp://pgp.mit.edu ABCDEFGH
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>ossrh</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.executable>gpg</gpg.executable>
<gpg.passphrase>[the password for your gpg key]</gpg.passphrase>
</properties>
</profile>
</profiles>
<servers>
<server>
<id>ossrh</id>
<username>[your sonatype account name]</username>
<password>[your sonatype account password]</password>
</server>
<server>
<id>sonatype-nexus-snapshots</id>
<username>[your sonatype account name]</username>
<password>[your sonatype account password]</password>
</server>
<server>
<id>sonatype-nexus-staging</id>
<username>[your sonatype account name]</username>
<password>[your sonatype account password]</password>
</server>
</servers>
</settings>
Make sure you are using Maven version 3.3 or higher to support the Nexus plugin required to stage a release.
Run git clean -x -f -d to put the repo in a clean state.
Locally build the repo by running mvn install -DskipTests.
and then run mvn clean deploy -DskipTests=true --settings ~/.m2/settings.xml -P release command. It will build and deploy artifacts to the staging repository.
Note: you may need to specify the stagingProfileId with -DstagingProfileId=3187e4f20d328b Note: you may need to specify the GPG tty with GPG_TTY=$(tty)
| Back | FazBrowse Home | New Git URL |