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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix Kokoro release jobs. Needs loopback pinentry-mode
* Skip install on deploy
* skip stagingProfileId
* Capture built artifacts
* Enable promote/drop jobs via environment variable
* Fix directory path and use -B for drop/release
* promote/drop need the settings file
* Fix path to settings file
* Update RELEASING documentation to use the Kokoro jobs
Make sure you are using Maven version 3.3 or higher to support the Nexus plugin required to stage a release.
74
151
75
-
Install releasetool
76
-
-------------------
77
-
See [releasetool](https://github.com/googleapis/releasetool) for installation instructions. You will
78
-
need python 3.6+ to run this tool.
79
-
80
-
To push a release version
81
-
=========================
152
+
### Manually publishing (from a local machine)
82
153
83
-
1.Make sure the team agrees that it is time to release.
154
+
1.Run `git clean -x -f -d` to put the repo in a clean state.
84
155
85
-
2. Look over all of the commits since the last release and make sure there are no breaking changes
86
-
on the public surface. If there are any breaking changes, create and merge a new PR to revert the
87
-
surface back.
88
-
89
-
**Note:** this should just be a scan of the public surface that would appear in Java doc.
90
-
Implementation changes, README changes, and snippet changes can all be skipped for this check.
156
+
2. Locally build the repo by running `mvn install -DskipTests`.
91
157
92
-
3. Verify that all unit and integration tests for the last commit have passed.
93
-
94
-
4. Run `releasetool start`. Select "minor" or "patch" for the release type. This will bump the
95
-
artifact versions, ask you to edit release notes, and create the release pull request.
96
-
97
-
**Note:** be sure to make these notes nice as they will be used for the release notes as well.
98
-
99
-
5. Run `git clean -x -f -d` to put the repo in a clean state.
100
-
101
-
6. Locally build the repo by running `mvn install -DskipTests`.
102
-
103
-
7. Run `python utilities/stage_sites.py`. This script checks out `gh-pages` branch of the
104
-
repository, builds the documentation site and javadocs, copies them to the branch and commits it.
105
-
This script does not push the docs and it must be done manually on the later step. The script
106
-
assumes that there is no directory called `tmp_gh-pages` in the repository root. If it is
107
-
present, remove it before running the script.
108
-
109
-
8. Check that you are not trying to release a SNAPSHOT build (the artifacts versions do not have
110
-
"-SNAPSHOT" suffix) and then run `mvn clean deploy -DskipTests=true --settings ~/.m2/settings.xml -P release`
158
+
3. and then run `mvn clean deploy -DskipTests=true --settings ~/.m2/settings.xml -P release`
111
159
command. It will build and deploy artifacts to the staging repository.
112
160
113
161
**Note:** you may need to specify the stagingProfileId with `-DstagingProfileId=3187e4f20d328b`
@@ -116,20 +164,11 @@ To push a release version
116
164
9. Run `mvn nexus-staging:release` to release the artifacts. If you wish to abort the release, run
117
165
`mvn nexus-staging:drop`.
118
166
119
-
10. Run `cd tmp_gh-pages && git push && cd ..` to push the previously generated docs (step 7).
120
-
121
-
11. Run `rm -rf tmp_gh-pages` to remove the generated docs directory from your local machine.
122
-
123
-
12. Run `releasetool tag` to publish a release on Github. It will list the last few merged PRs.
124
-
Select the newly merged release PR. Releasetool will create the GitHub release with notes
125
-
extracted from the pull request and tag the new release.
126
-
127
-
13. Run `releasetool start` to bump the next snapshot version. Select "snapshot" when prompted for
128
-
the release type. This will bump the artifact versions and create a pull request.
129
-
130
-
14. Review and submit the PR.
167
+
## Improvements
131
168
132
-
Improvements
133
-
============
169
+
* Automatic tagging is not currently implemented, though it was discussed in #119. If the version
170
+
updates continue to be manual, a one-line git tag command can be added to `after_success.sh` to
171
+
correctly tag releases. However, automatically creating useful annotations for this tag will be
172
+
difficult. Also, if the release process becomes fully automated, tagging becomes a harder
173
+
problem, as mentioned in that issue.
134
174
135
-
Automatic tagging is not currently implemented, though it was discussed in [#119](https://github.com/googleapis/google-cloud-java/pull/119). If the version updates continue to be manual, a one-line git tag command can be added to `after_success.sh` to correctly tag releases. However, automatically creating useful annotations for this tag will be difficult. Also, if the release process becomes fully automated, tagging becomes a harder problem, as mentioned in that issue.
0 commit comments