File tree 2 files changed +22
-4
lines changed
2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -593,6 +593,13 @@ func New(
593
593
},
594
594
)
595
595
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
+
596
603
return app
597
604
}
598
605
Original file line number Diff line number Diff line change 1
1
# Release
2
2
3
3
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:
6
17
* 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` )
7
18
* verify the branch/commit target for the release: usually it should be ` master` but other targets are possible as well
8
19
* 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:
10
21
* it builds ` dcld` binary on ` ubuntu-20.04` and ` macos-11` and attaches the artifacts to the GitHub release:
11
22
* binary and archived binary for ` ubuntu-20.04`
12
23
* archived binary for ` macos-11`
13
24
* 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:
15
26
* some intermittent issue happened during the normal build so some artifact hasn' t been attached
16
27
* testing / debugging
You can’t perform that action at this time.
0 commit comments