You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RELEASING.md 1.5 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # How to Create a New Release
  2. ## Prerequisites
  3. Install [releasetool](https://github.com/googleapis/releasetool).
  4. ## Create a release
  5. 1. `cd` into the root directory, e.g., `~/go/src/cloud.google.com/go`
  6. 1. Checkout the master branch and ensure a clean and up-to-date state.
  7. ```
  8. git checkout master
  9. git pull --tags origin master
  10. ```
  11. 1. Run releasetool to generate a changelog from the last version. Note,
  12. releasetool will prompt if the new version is a major, minor, or patch
  13. version.
  14. ```
  15. releasetool start --language go
  16. ```
  17. 1. Format the output to match CHANGES.md.
  18. 1. Submit a CL with the changes in CHANGES.md. The commit message should look
  19. like this (where `v0.31.0` is instead the correct version number):
  20. ```
  21. all: Release v0.31.0
  22. ```
  23. 1. Wait for approval from all reviewers and then submit the CL.
  24. 1. Return to the master branch and pull the release commit.
  25. ```
  26. git checkout master
  27. git pull origin master
  28. ```
  29. 1. Tag the current commit with the new version (e.g., `v0.31.0`)
  30. ```
  31. releasetool tag --language go
  32. ```
  33. 1. Publish the tag to GoogleSource (i.e., origin):
  34. ```
  35. git push origin $NEW_VERSION
  36. ```
  37. 1. Visit the [releases page][releases] on GitHub and click the "Draft a new
  38. release" button. For tag version, enter the tag published in the previous
  39. step. For the release title, use the version (e.g., `v0.31.0`). For the
  40. description, copy the changes added to CHANGES.md.
  41. [releases]: https://github.com/googleapis/google-cloud-go/releases