GeezerVison is showing github.com — Add bumpversion to automate changing version numbers in READMEs · guillept/java-sdk@346924b
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +20Lines changed: 20 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +[bumpversion] |
| 2 | +current_version = 4.0.0 |
| 3 | + |
| 4 | +[bumpversion:file:README.md] |
| 5 | +[bumpversion:file:alchemy/README.md] |
| 6 | +[bumpversion:file:conversation/README.md] |
| 7 | +[bumpversion:file:discovery/README.md] |
| 8 | +[bumpversion:file:document-conversion/README.md] |
| 9 | +[bumpversion:file:language-translator/README.md] |
| 10 | +[bumpversion:file:natural-language-classifier/README.md] |
| 11 | +[bumpversion:file:natural-language-understanding/README.md] |
| 12 | +[bumpversion:file:personality-insights/README.md] |
| 13 | +[bumpversion:file:retrieve-and-rank/README.md] |
| 14 | +[bumpversion:file:speech-to-text/README.md] |
| 15 | +[bumpversion:file:text-to-speech/README.md] |
| 16 | +[bumpversion:file:tone-analyzer/README.md] |
| 17 | +[bumpversion:file:tradeoff-analytics/README.md] |
| 18 | +[bumpversion:file:visual-recognition/README.md] |
| 19 | +search = {current_version} |
| 20 | +replace = {new_version} |
Collapse file
Copy file name to clipboardExpand all lines: RELEASE.md +20-3Lines changed: 20 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -17,9 +17,26 @@ If you are not familiar with Sonatype and/or the maven release process please re |
17 | 17 |
|
18 | 18 | ### Release steps |
19 | 19 |
|
20 | | - 1. Update `README.md` to include the new version number |
| 20 | + 1. Update all READMEs to include the new version number |
| 21 | + |
| 22 | + This can be done using [bumpversion]. If necessary, it can be installed with the following command: |
| 23 | + |
| 24 | + ```bash |
| 25 | + pip install bumpversion |
| 26 | + ``` |
| 27 | + |
| 28 | + To then update all version numbers, simply run: |
| 29 | + |
| 30 | + ```bash |
| 31 | + bumpversion major|minor|patch |
| 32 | + ``` |
| 33 | + |
21 | 34 | 1. Perform a release deployment to OSSRH (Staging) with: |
22 | 35 |
|
23 | | - `gradle release` |
| 36 | + ```bash |
| 37 | + `gradle release` |
| 38 | + ``` |
| 39 | + |
| 40 | + You will have to answer prompts for versions and tags. That will tag and commit a new version into your repository automatically. |
24 | 41 |
|
25 | | - You will have to answer prompts for versions and tags. That will tag and commit a new version into your repository automatically. |
| 42 | +[bumpversion]: https://pypi.python.org/pypi/bumpversion |