Skip to content
This repository was archived by the owner on May 31, 2023. It is now read-only.

Commit a32d995

Browse files
Refactor release checklist to match the current release situation
1 parent dd80862 commit a32d995

File tree

1 file changed

+25
-40
lines changed

1 file changed

+25
-40
lines changed

src/checklist.sh

Lines changed: 25 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,51 @@
11
# #!/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}
63

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
2511
- [ ] Update `scalaVersion` (and, if applicable, the `sbt-dotty` version) in the Dotty ecosystem projects
26-
- [ ] https://github.com/lampepfl/dotty-example-project [![Build Status](https://travis-ci.org/lampepfl/dotty-example-project.svg?branch=master)](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 [![Build Status](https://travis-ci.org/lampepfl/dotty.g8.svg?branch=master)](https://travis-ci.org/lampepfl/dotty.g8/)
30-
- [ ] Committed to `master`
31-
- [ ] https://github.com/lampepfl/dotty-cross.g8 [![Build Status](https://travis-ci.org/lampepfl/dotty-cross.g8.svg?branch=master)](https://travis-ci.org/lampepfl/dotty-cross.g8/)
32-
- [ ] Committed to `master`
33-
- [ ] https://github.com/lampepfl/dotty-staging.g8 [![Build Status](https://travis-ci.org/lampepfl/dotty-staging.g8.svg?branch=master)](https://travis-ci.org/lampepfl/dotty-staging.g8)
34-
- [ ] Committed to `master`
12+
- [ ] https://github.com/scala/scala3-example-project [![Build Status](https://travis-ci.org/scala/scala3-example-project.svg?branch=master)](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 [![Build Status](https://travis-ci.org/scala/scala3.g8.svg?branch=master)](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 [![Build Status](https://travis-ci.org/scala/scala3-cross.g8.svg?branch=master)](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 [![Build Status](https://travis-ci.org/scala/scala3-staging.g8.svg?branch=master)](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 [![Build Status](https://travis-ci.org/scala/scala3-tasty-inspector.g8.svg?branch=master)](https://travis-ci.org/scala/scala3-tasty-inspector.g8)
22+
- [ ] Committed to `master` (https://github.com/scala/scala3-tasty-inspector.g8/pull/6)
3523
- [ ] https://github.com/lampepfl/homebrew-brew [![Build Status](https://travis-ci.org/lampepfl/homebrew-brew.svg?branch=master)](https://travis-ci.org/lampepfl/homebrew-brew)
3624
- [ ] Committed to `master`
3725
- SHA256 sum for the artifact: `wget -q -O- https://github.com/lampepfl/dotty/releases/download/<rc-version>/sha256sum.txt | grep ".tar.gz"`
3826
- [ ] https://github.com/lampepfl/packtest [![Build Status](https://travis-ci.org/lampepfl/packtest.svg?branch=master)](https://travis-ci.org/lampepfl/packtest)
3927
- [ ] Committed to `master`
4028
- [ ] https://github.com/lampepfl/xml-interpolator [![Build Status](https://travis-ci.org/lampepfl/xml-interpolator.svg?branch=master)](https://travis-ci.org/lampepfl/xml-interpolator)
41-
- [ ] PR submitted
29+
- [ ] PR submitted (https://github.com/lampepfl/xml-interpolator/pull/29)
4230
- [ ] PR merged
4331
- [ ] https://github.com/scalacenter/scastie
4432
- [ ] PR submitted
4533
- [ ] PR merged
4634
- [ ] https://scastie.scala-lang.org/ -> Build Settings -> Dotty mentions `<rc-version>`
47-
- [ ] Dotty reference compiler [![Build Status](http://dotty-ci.epfl.ch/api/badges/lampepfl/dotty/status.svg)](http://dotty-ci.epfl.ch/lampepfl/dotty)
48-
- [ ] PR submitted
35+
- [ ] Dotty reference compiler [![Dotty CI](https://github.com/lampepfl/dotty/workflows/Dotty%20CI/badge.svg?branch=master)](https://github.com/lampepfl/dotty/actions?query=branch%3Amaster)
36+
- [ ] PR submitted (#10828)
4937
- [ ] PR merged
5038
- [ ] Scalac [![Build Status](https://travis-ci.org/scala/scala.svg?branch=2.13.x)](https://travis-ci.org/scala/scala)
5139
- [ ] PR submitted
5240
- [ ] PR merged
41+
- Update the dotty-repl Coursier [app definition](https://github.com/coursier/apps/blob/master/apps/resources/dotty-repl.json)
5342
- [ ] Announce the release
5443
- [ ] Publish releases for the RC and stable versions on GitHub Releases
5544
- [ ] Publish Blog Post on dotty.epfl.ch
5645
- [ ] Make an announcement thread on https://contributors.scala-lang.org
5746
- [ ] Tweet the announcement blog post on https://twitter.com/scala_lang
5847
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)'
6049

6150
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

Comments
 (0)