|
1 | 1 | # Release Operations |
2 | 2 |
|
3 | | -## Run the Gradle release task |
| 3 | +## Dispatch the release workflow |
4 | 4 |
|
5 | | -The Gradle release task creates a release commit and push it to the origin/master branch. |
| 5 | +Dispatch the [release workflow](.github/workflows/release.yml) as follows: |
6 | 6 |
|
7 | 7 | ``` |
8 | | -$ git checkout master |
9 | | -$ git pull |
10 | | -$ ./gradlew release -Prelease.releaseVersion=$(gh release list -L 1 | tee /dev/tty | awk '{print $1}') |
| 8 | +$ gh api repos/domaframework/doma/actions/workflows/release.yml/dispatches -F ref='master' |
11 | 9 | ``` |
12 | 10 |
|
13 | | -The value of `release.releaseVersion` is decided by the draft name of |
14 | | -[Releases](https://github.com/domaframework/doma/releases). |
15 | | - |
16 | 11 | ## Build and Publish |
17 | 12 |
|
18 | 13 | (No operation required) |
19 | 14 |
|
20 | | -The GitHub Actions workflow [Java CI with Gradle](.github/workflows/ci.yml) handles the above push event. |
21 | | - |
22 | | -The workflow builds artifacts and publishes them to [Maven Central](https://repo1.maven.org/). |
| 15 | +The [ci workflow](.github/workflows/ci.yml) follows the above release workflow |
| 16 | +and publishes artifacts to [Maven Central](https://repo1.maven.org/). |
23 | 17 |
|
24 | 18 | ## Wait for the artifacts to appear on Maven Central |
25 | 19 |
|
26 | 20 | (Optional) |
27 | 21 |
|
28 | | -Use [Dependency Watch](https://github.com/JakeWharton/dependency-watch). |
| 22 | +Use [Dependency Watch](https://github.com/JakeWharton/dependency-watch): |
29 | 23 |
|
30 | 24 | ``` |
31 | 25 | $ dependency-watch await org.seasar.doma:doma-core:$(gh release list -L 1 | tee /dev/tty | awk '{print $1}') && say "New version is available!" |
@@ -54,6 +48,7 @@ and publish release notes. |
54 | 48 |
|
55 | 49 | ## Announce the release |
56 | 50 |
|
57 | | -Announce the release of new version using Twitter and Google Group. |
58 | | -- [@domaframework](https://twitter.com/domaframework) |
59 | | -- [doma-user](https://groups.google.com/g/doma-user) |
| 51 | +Announce the release of new version using |
| 52 | +[Twitter]((https://twitter.com/domaframework)), |
| 53 | +[Zulip](https://domaframework.zulipchat.com), and |
| 54 | +[Google Group](https://groups.google.com/g/doma-user). |
0 commit comments