|
1 | 1 | # #!/usr/bin/env bash
|
2 |
| -stable=${1:?Stable release version must be provided as the first argument} |
3 |
| -stable_patch=0 |
4 |
| -rc_patch=0 |
5 |
| -next_patch=0 |
| 2 | +release_version=${1:?The to-be-released version must be provided as the first argument} |
6 | 3 |
|
7 |
| -rc="$(($stable+1))" |
8 |
| -next="$(($rc+1))" |
9 |
| - |
10 |
| -stable_version="0.$stable.$stable_patch" |
11 |
| -rc_version_preview="0.$rc.$rc_patch" |
12 |
| -rc_version="$rc_version_preview-RC1" |
13 |
| -next_version="0.$next.$next_patch" |
14 |
| -stable_branch="0.$stable.x" |
15 |
| -rc_branch="0.$rc.x" |
16 |
| - |
17 |
| -LIST='- [ ] Finalize the the stable and RC releases |
18 |
| - - [ ] Look at the milestone of the RC version being released. Move all the open issues from it to the next milestone. |
19 |
| - - [ ] Merge branch `<stable-branch>` into `master` to guarantee that all of the `<stable-branch>` commits are propagated to `master` |
20 |
| -- [ ] Publish artifacts to Maven via CI. Use the following command: `bash <(curl -sL https://raw.githubusercontent.com/lampepfl/dotty/master/docs/docs/contributing/release.sh) '$stable'` |
21 |
| - - [ ] On branch `<stable-branch>`, set `baseVersion` to `<stable-version>` and `git tag` it as `<stable-version>`. This will publish artefacts to Sonatype and GitHub Release |
22 |
| - - [ ] Create branch `<rc-branch>` from `master` |
23 |
| - - [ ] On `<rc-branch>`, set `baseVersion` to `<rc-version>` and `git tag` it as `<rc-version>`. This will publish artefacts to Sonatype and GitHub Release. |
24 |
| - - [ ] On `master`, set `baseVersion` to `<next-version>` |
| 4 | +LIST='- [ ] Finalize release |
| 5 | + - [ ] Look at the milestone of the version being released. Move all the open issues from it to the next milestone. |
| 6 | + - [ ] Merge branch of the previous release into `master` to guarantee that all of the commits are propagated to `master` |
| 7 | +- [ ] Publish artifacts to Maven via CI |
| 8 | + - [ ] Create branch `<release_version>` from `master` |
| 9 | + - [ ] On that branch, set `baseVersion` and tag it as `<release_version>` |
| 10 | + - [ ] On `master`, set `baseVersion` to the next version to be released |
25 | 11 | - [ ] Update `scalaVersion` (and, if applicable, the `sbt-dotty` version) in the Dotty ecosystem projects
|
26 |
| - - [ ] https://github.com/lampepfl/dotty-example-project [](https://travis-ci.org/lampepfl/dotty-example-project) |
27 |
| - - [ ] Committed to `master` |
28 |
| - - [ ] https://github.com/lampepfl/dotty-example-project/tree/mill |
29 |
| - - [ ] https://github.com/lampepfl/dotty.g8 [](https://travis-ci.org/lampepfl/dotty.g8/) |
30 |
| - - [ ] Committed to `master` |
31 |
| - - [ ] https://github.com/lampepfl/dotty-cross.g8 [](https://travis-ci.org/lampepfl/dotty-cross.g8/) |
32 |
| - - [ ] Committed to `master` |
33 |
| - - [ ] https://github.com/lampepfl/dotty-staging.g8 [](https://travis-ci.org/lampepfl/dotty-staging.g8) |
34 |
| - - [ ] Committed to `master` |
| 12 | + - [ ] https://github.com/scala/scala3-example-project [](https://travis-ci.org/scala/scala3-example-project) |
| 13 | + - [ ] Committed to `master` (https://github.com/scala/scala3-example-project/pull/48) |
| 14 | + - [ ] https://github.com/scala/scala3-example-project/tree/mill |
| 15 | + - [ ] https://github.com/scala/scala3.g8 [](https://travis-ci.org/scala/scala3.g8/) |
| 16 | + - [ ] Committed to `master` (https://github.com/scala/scala3.g8/pull/35) |
| 17 | + - [ ] https://github.com/scala/scala3-cross.g8 [](https://travis-ci.org/scala/scala3-cross.g8/) |
| 18 | + - [ ] Committed to `master` (https://github.com/lampepfl/scala3-cross.g8/pull/14) |
| 19 | + - [ ] https://github.com/lampepfl/scala3-staging.g8 [](https://travis-ci.org/lampepfl/scala3-staging.g8) |
| 20 | + - [ ] Committed to `master` (https://github.com/scala/scala3-staging.g8/pull/13) |
| 21 | + - [ ] https://github.com/scala/scala3-tasty-inspector.g8 [](https://travis-ci.org/scala/scala3-tasty-inspector.g8) |
| 22 | + - [ ] Committed to `master` (https://github.com/scala/scala3-tasty-inspector.g8/pull/6) |
35 | 23 | - [ ] https://github.com/lampepfl/homebrew-brew [](https://travis-ci.org/lampepfl/homebrew-brew)
|
36 | 24 | - [ ] Committed to `master`
|
37 | 25 | - SHA256 sum for the artifact: `wget -q -O- https://github.com/lampepfl/dotty/releases/download/<rc-version>/sha256sum.txt | grep ".tar.gz"`
|
38 | 26 | - [ ] https://github.com/lampepfl/packtest [](https://travis-ci.org/lampepfl/packtest)
|
39 | 27 | - [ ] Committed to `master`
|
40 | 28 | - [ ] https://github.com/lampepfl/xml-interpolator [](https://travis-ci.org/lampepfl/xml-interpolator)
|
41 |
| - - [ ] PR submitted |
| 29 | + - [ ] PR submitted (https://github.com/lampepfl/xml-interpolator/pull/29) |
42 | 30 | - [ ] PR merged
|
43 | 31 | - [ ] https://github.com/scalacenter/scastie
|
44 | 32 | - [ ] PR submitted
|
45 | 33 | - [ ] PR merged
|
46 | 34 | - [ ] https://scastie.scala-lang.org/ -> Build Settings -> Dotty mentions `<rc-version>`
|
47 |
| - - [ ] Dotty reference compiler [](http://dotty-ci.epfl.ch/lampepfl/dotty) |
48 |
| - - [ ] PR submitted |
| 35 | + - [ ] Dotty reference compiler [](https://github.com/lampepfl/dotty/actions?query=branch%3Amaster) |
| 36 | + - [ ] PR submitted (#10828) |
49 | 37 | - [ ] PR merged
|
50 | 38 | - [ ] Scalac [](https://travis-ci.org/scala/scala)
|
51 | 39 | - [ ] PR submitted
|
52 | 40 | - [ ] PR merged
|
| 41 | + - Update the dotty-repl Coursier [app definition](https://github.com/coursier/apps/blob/master/apps/resources/dotty-repl.json) |
53 | 42 | - [ ] Announce the release
|
54 | 43 | - [ ] Publish releases for the RC and stable versions on GitHub Releases
|
55 | 44 | - [ ] Publish Blog Post on dotty.epfl.ch
|
56 | 45 | - [ ] Make an announcement thread on https://contributors.scala-lang.org
|
57 | 46 | - [ ] Tweet the announcement blog post on https://twitter.com/scala_lang
|
58 | 47 |
|
59 |
| -[Instructions on how to release](https://dotty.epfl.ch/docs/contributing/release.html)' |
| 48 | +[Instructions on how to release](https://dotty.epfl.ch/docs/contributing/procedures/release.html)' |
60 | 49 |
|
61 | 50 | echo "$LIST" |\
|
62 |
| - sed "s/<stable-version>/$stable_version/g" |\ |
63 |
| - sed "s/<rc-version>/$rc_version/g" |\ |
64 |
| - sed "s/<next-version>/$next_version/g" |\ |
65 |
| - sed "s/<stable-branch>/$stable_branch/g" |\ |
66 |
| - sed "s/<rc-branch>/$rc_branch/g" |
| 51 | + sed "s/<release_version>/$release_version/g" |\ |
0 commit comments