Skip to content

Commit 39d9e04

Browse files
---
yaml --- r: 9881 b: refs/heads/master c: cd64e36 h: refs/heads/master i: 9879: 8161e5a
1 parent bc89e86 commit 39d9e04

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: d7404efdad1c41611412e448fa05247933cffeeb
2+
refs/heads/master: cd64e368f7acfb69715931736b43b3e454cb771e
33
refs/heads/travis: 47e4fee4fd5af9b2a8ce46f23c72ec95f9b195b2
44
refs/heads/gh-pages: 8f06ce58a2d2825865991e9ba7841a013dccbae1
55
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

trunk/RELEASING.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,24 +98,28 @@ To push a release version
9898
9. Run `python utilities/stage_sites.py`.
9999
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.
100100

101-
10. Check that you are not trying to release a SNAPSHOT build (the artifacts versions do not have "-SNAPSHOT" suffix) 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.
101+
10. Locally edit the root `pom.xml` so that `mvn deploy` works: 1. Under `<modules>`, comment out `google-cloud-examples`, `google-cloud-testing`, and `google-cloud-util`. 2. Comment out the `nexus-staging-maven-plugin` plugin definition at the end of the file. Don't commit these changes.
102102

103-
11. Run `mvn nexus-staging:release` to release the artifacts.
103+
11. Check that you are not trying to release a SNAPSHOT build (the artifacts versions do not have "-SNAPSHOT" suffix) 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.
104104

105-
12. Run `cd tmp_gh-pages && git push && cd ..` to push the previously generated docs (step 8).
105+
12. Run `mvn nexus-staging:release` to release the artifacts.
106106

107-
13. Run `rm -rf tmp_gh-pages` to remove the generated docs directory from your local machine.
107+
13. Revert the local edits to your `pom.xml` performed a couple steps above by running `git checkout pom.xml`.
108108

109-
14. Publish a release on Github manually.
109+
14. Run `cd tmp_gh-pages && git push && cd ..` to push the previously generated docs (step 8).
110+
111+
15. Run `rm -rf tmp_gh-pages` to remove the generated docs directory from your local machine.
112+
113+
16. Publish a release on Github manually.
110114
Go to the [releases page](https://github.com/GoogleCloudPlatform/google-cloud-java/releases) and open the appropriate release draft. Make sure the "Tag Version" is `vX.Y.Z` and the "Release Title" is `X.Y.Z`, where `X.Y.Z` is the release version as listed in the `pom.xml` files.
111115

112116
Add the commits since the last release into the release draft. Try to group them into sections with related changes. Anything that is a breaking change needs to be marked with `*breaking change*`. Such changes are only allowed for alpha/beta modules and `@BetaApi` features.
113117

114118
Ensure that the format is consistent with previous releases (for an example, see the [0.1.0 release](https://github.com/GoogleCloudPlatform/google-cloud-java/releases/tag/v0.1.0)). After adding any missing updates and reformatting as necessary, publish the draft.
115119

116-
15. Run `python utilities/bump_versions.py next_snapshot patch` to include "-SNAPSHOT" in the current project version (Alternatively, update the versions in `versions.txt` to the correct versions for the next release.). Then, run `python utilities/replace_versions.py` to update the `pom.xml` files. (If you see updates in `README.md` files at this step, you probably did something wrong.)
120+
17. Run `python utilities/bump_versions.py next_snapshot patch` to include "-SNAPSHOT" in the current project version (Alternatively, update the versions in `versions.txt` to the correct versions for the next release.). Then, run `python utilities/replace_versions.py` to update the `pom.xml` files. (If you see updates in `README.md` files at this step, you probably did something wrong.)
117121

118-
16. Create and merge in another PR to reflect the updated project version.
122+
18. Create and merge in another PR to reflect the updated project version.
119123

120124
Improvements
121125
============

0 commit comments

Comments
 (0)