Skip to content

Commit

Permalink
chore: Releasing version 0.11.0 (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
themantre authored May 29, 2023
1 parent 570c7b5 commit 806bbb9
Show file tree
Hide file tree
Showing 6 changed files with 175 additions and 3 deletions.
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,43 @@
# Changelog

## [0.11.0](https://github.com/pactus-project/pactus/compare/v0.10.0...v0.11.0) (2023-05-29)

### Fix

- **gui**: showing the total number of validators (#474)
- **network**: fixing relay connection issue (#475)
- **consensus**: rejecting vote with round numbers exceeding the limit (#466)
- increase failed counter when stream got error
- boosting syncing process (#482)
- waiting for proposal in pre-commit phase (#486)
- retrieving public key from wallet for bond transactions (#485)
- restoring config file to the default (#484)
- defining ChainType in genesis to detect the type of network (#483)
- reducing the default Argon2d to consume less memory (#480)
- adding password option to the start commands (#473)

### Refactor

- rename send to transfer. (#469)

## [0.10.0](https://github.com/pactus-project/pactus/compare/v0.9.0...v0.10.0) (2023-05-09)

### Feat

- removing address from account (#454)
- supporting multiple consensus instances (#450)
- adding sortition interval to the parameters (#442)

### Fix

- **gui**: check if the node has an active consensus instance (#458)
- wallet path as argument (#455)
- adding reward addresses to config (#453)
- removing committers from the certificate hash (#444)
- prevent data race conditions in committee (#452)
- using 2^256 for the vrf denominator (#445)
- updating tla+ readme (#443)

## 0.9.0 (2022-09-05)

No changelog
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A full-node implementation of the Pactus blockchain in Go.

## Install

Please check the [INSTALL](./INSTALL.md) document to build and run the Pactus blockchain.
Please check the [INSTALL](./docs/install.md) document to build and run the Pactus blockchain.

## Contribution

Expand Down
11 changes: 10 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,19 @@ func SaveTestnetConfig(path string, numValidators int) error {
conf.Network.Name = "pactus-testnet"
conf.Network.Listens = []string{"/ip4/0.0.0.0/tcp/21777", "/ip6/::/tcp/21777"}
conf.Network.Bootstrap.Addresses = []string{
"/ip4/94.101.184.118/tcp/21777/p2p/12D3KooWCwQZt8UriVXobQHPXPR8m83eceXVoeT6brPNiBHomebc",
"/ip4/172.104.46.145/tcp/21777/p2p/12D3KooWNYD4bB82YZRXv6oNyYPwc5ozabx2epv75ATV3D8VD3Mq",
"/ip4/94.101.184.118/tcp/21777/p2p/12D3KooWCwQZt8UriVXobQHPXPR8m83eceXVoeT6brPNiBHomebc"}
"/ip4/163.172.178.141/tcp/21777/p2p/12D3KooWDF8a4goNCHriP1y922y4jagaPwHdX4eSrG5WtQpjzS6k",
"/ip4/13.230.117.134/tcp/21777/p2p/12D3KooWBGNEH8NqdK1UddSnPV1yRHGLYpaQUcnujC24s7YNWPiq",
"/ip6/2400:8901::f03c:93ff:fe1c:c3ec/tcp/21777/p2p/12D3KooWNYD4bB82YZRXv6oNyYPwc5ozabx2epv75ATV3D8VD3Mq"}
conf.Network.Bootstrap.MinThreshold = 4
conf.Network.Bootstrap.MaxThreshold = 8
conf.Network.EnableRelay = true
conf.Network.RelayAddrs = []string{
"/ip4/172.104.46.145/tcp/4002/p2p/12D3KooWNR79jqHVVNhNVrqnDbxbJJze4VjbEsBjZhz6mkvinHAN",
"/ip6/2400:8901::f03c:93ff:fe1c:c3ec/tcp/4002/p2p/12D3KooWNR79jqHVVNhNVrqnDbxbJJze4VjbEsBjZhz6mkvinHAN",
"/ip4/94.101.184.118/tcp/4002/p2p/12D3KooWCRHn8vjrKNBEQcut8uVCYX5q77RKidPaE6iMK31qEVHb",
}
conf.GRPC.Enable = true
conf.GRPC.Listen = "[::]:9090"
conf.GRPC.Gateway.Enable = true
Expand Down
File renamed without changes.
121 changes: 121 additions & 0 deletions docs/releasing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
# Releasing

Before releasing and publishing the Pactus software, there are a few important steps that need to be followed.
Please follow the instructions below:

1. Get the latest code

```bash
git checkout main
git pull
```

2. Updating Windows DLLS

To ensure that the GUI can find the required dependency DLLs in Windows, we may need to update them.
Follow these commands in the project's root directory, using[MSYS2](https://www.msys2.org/):

```bash
git pull
pacman -Suyyy
.github/releasers/releaser_gui_windows.sh
```

Wait for the build to finish. If everything is okay, proceed to the next step.
Otherwise, update the dependency DLLs inside `.github/releasers/releaser_gui_windows.sh` and
run the above command again.

3. Check the config

Double-check the config files to ensure they are up to date.

4. Creating Environment Variables

Let's create environment variables for the release version.
For the rest of this document, we will use these environment variables in the commands.

```bash
VERSION="0.11.0"
TAG_NAME="v${VERSION}"
TAG_MESSAGE="Version ${VERSION}"
```

For the rest of this document, we will use these environment variables in commands.

5. Update Changelog

Use [Commitizen](https://github.com/commitizen-tools/commitizen) to update the CHANGELOG.
Run the following command:

```bash
cz changelog --incremental --unreleased-version $VERSION
```

Sometimes you may need to amend the changelog manually.
Create a comparison link for the changelog header, like:

```text
## [0.11.0](https://github.com/pactus-project/pactus/compare/v0.10.0...v0.11.0)
```

6. Create release PR

Create a new PR against the `main` branch:

```bash
git checkout -b releasing_$VERSION
git commit -a -m "chore: Releasing version $VERSION"
git push origin HEAD
```

Wait for the PR to be approved and merged into the `main` branch.

7. Tagging

Create a git tag:

```bash
git checkout main
git pull
git tag -s -a $TAG_NAME -m $TAG_MESSAGE
```

check the tag info:

```bash
git show $TAG_NAME
```

8. Push the tag

Now you can push the tag to the repository:

```bash
git push origin $TAG_NAME
```

Pushing the tag will automatically create a release tag and build the binaries.

9. Bumping version

Update the version inside the `version/version.go` to `0.12.0`
Also update the version inside this document in step 3 and 4 to `0.12.0`

Create a new PR against `main` branch:

```bash
git checkout -b bumping_0.12.0
git commit -a -m "chore: bumping version to 0.12.0"
git push origin HEAD
```

Wait for the PR to be approved and merged into the `main` branch.

10. Update the website

Create a new announcement post in the [blog](https://pactus.org/blog/) and
update the [Road Map](https://pactus.org/about/roadmap/).
Additionally, draft a new release on the
[GitHub Releases](https://github.com/pactus-project/pactus/releases) page.

11. Celebrate 🎉
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
// These constants follow the semantic versioning 2.0.0 spec (http://semver.org/)
const (
major uint = 0
minor uint = 10
minor uint = 11
patch uint = 0
meta string = "beta"
)
Expand Down

0 comments on commit 806bbb9

Please sign in to comment.