|
| 1 | +# kotlinx.coroutines release checklist |
| 2 | + |
| 3 | +To release new `<version>` of `kotlinx-coroutines`: |
| 4 | + |
| 5 | +1. Checkout `master` branch: <br> |
| 6 | + `git checkout master` |
| 7 | + |
| 8 | +2. Retrieve the most recent `master`: <br> |
| 9 | + `git pull` |
| 10 | + |
| 11 | +3. Merge `develop` branch unto `master`: <br> |
| 12 | + `git merge origin/develop` |
| 13 | + |
| 14 | +4. Search & replace `<old-version>` with `<version>` across the project files. Should replace in: |
| 15 | + * [`README.md`](README.md) |
| 16 | + * [`coroutines-guide.md`](coroutines-guide.md) |
| 17 | + * [`gradle.properties`](gradle.properties) |
| 18 | + * [`ui/kotlinx-coroutines-android/example-app/app/build.gradle`](ui/kotlinx-coroutines-android/example-app/app/build.gradle) |
| 19 | + * [`ui/kotlinx-coroutines-android/animation-app/gradle.properties`](ui/kotlinx-coroutines-android/animation-app/gradle.properties) |
| 20 | + * Make sure to **exclude** `CHANGES.md` from replacements. |
| 21 | + |
| 22 | +5. Write release notes in [`CHANGES.md`](CHANGES.md): |
| 23 | + * Use old releases as example of style. |
| 24 | + * Write each change on a single line (don't wrap with CR). |
| 25 | + * Study commit message from previous release. |
| 26 | + |
| 27 | +6. Commit updated files for new version: <br> |
| 28 | + `git commit -a -m "Version <version>"` |
| 29 | + |
| 30 | +7. On [TeamCity integration server](https://teamcity.jetbrains.com/project.html?projectId=KotlinTools_KotlinxCoroutines): |
| 31 | + * Wait until "Build" configuration for committed `master` branch passes tests. |
| 32 | + * Run "Deploy" configuration with the corresponding new version. |
| 33 | + |
| 34 | +8. In [GitHub](http://github.com/kotlin/kotlinx.coroutines) interface: |
| 35 | + * Create new release named as `<version>`. |
| 36 | + * Cut & paste lines from [`CHANGES.md`](CHANGES.md) into description. |
| 37 | + |
| 38 | +9. Build and publish documentation for web-site: <br> |
| 39 | + `site/deploy.sh <version> push` |
| 40 | + |
| 41 | +0. In [Bintray](http://bintray.com) admin interface: |
| 42 | + * Publish artifacts of the new version. |
| 43 | + * Wait until newly published version becomes the most recent. |
| 44 | + * Sync to Maven Central. |
0 commit comments