Skip to content

Commit b30d731

Browse files
authored
Merge pull request #369 from uabjabborov/release/0.11.0
Release v0.11.0 preparation
2 parents 2ea0715 + 5e11507 commit b30d731

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

app/app.go

+7
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,13 @@ func New(
593593
},
594594
)
595595

596+
app.UpgradeKeeper.SetUpgradeHandler(
597+
"v0.11.0",
598+
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
599+
return make(module.VersionMap), nil
600+
},
601+
)
602+
596603
return app
597604
}
598605

docs/release.md

+15-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
# Release
22

33
The steps:
4-
5-
1. [draft](https://github.com/zigbee-alliance/distributed-compliance-ledger/releases/new) and publish a new GitHub release:
4+
1. Set a new upgrade handler for the version being released in [here](https://github.com/zigbee-alliance/distributed-compliance-ledger/blob/2ea0715e47bc911c21e0f74431a87ce68bbd5043/app/app.go#L589) before releasing the binary
5+
6+
example:
7+
```golang
8+
app.UpgradeKeeper.SetUpgradeHandler(
9+
"v0.11.0",
10+
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
11+
return make(module.VersionMap), nil
12+
},
13+
)
14+
```
15+
> **_Note:_** Dummy handler is added in this example. But you may want to run some migrations inside the handler.
16+
2. [draft](https://github.com/zigbee-alliance/distributed-compliance-ledger/releases/new) and publish a new GitHub release:
617
* specify a new release tag based on a new planned version of DCLedger in the format `v<version>` (e.g. `v1.2.3` for the version `1.2.3`)
718
* verify the branch/commit target for the release: usually it should be `master` but other targets are possible as well
819
* put release notes
9-
2. once published [release pipeline](https://github.com/zigbee-alliance/distributed-compliance-ledger/actions/workflows/release.yml) is triggered:
20+
3. once published [release pipeline](https://github.com/zigbee-alliance/distributed-compliance-ledger/actions/workflows/release.yml) is triggered:
1021
* it builds `dcld` binary on `ubuntu-20.04` and `macos-11` and attaches the artifacts to the GitHub release:
1122
* binary and archived binary for `ubuntu-20.04`
1223
* archived binary for `macos-11`
1324
* systemd service file
14-
3. additional way to trigger the pipeline is to do that manually, it can be used for the following cases:
25+
4. additional way to trigger the pipeline is to do that manually, it can be used for the following cases:
1526
* some intermittent issue happened during the normal build so some artifact hasn't been attached
1627
* testing / debugging

0 commit comments

Comments
 (0)