Skip to content

Commit

Permalink
chore: Update release script and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Dec 21, 2023
1 parent baef8a9 commit e06dd4c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
14 changes: 11 additions & 3 deletions .github/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,28 @@ if [ "$#" -ne 1 ]; then
fi
new_version=$1

# Update version in Cargo.toml
echo ""
echo " ⏫ Update version in Cargo.toml"
echo ""
sed -i "s/^version = \"[0-9]*\.[0-9]*\.[0-9]*\"\$/version = \"$new_version\"/" "Cargo.toml"
git add Cargo.toml
git commit -S -m "chore: Bump version to $new_version"
git push

# Create and push tag
echo ""
echo " 🏷️ Create and push tag"
echo ""
git tag -a v$new_version -m "v$new_version"
git push origin v$new_version

# Update changelog
echo ""
echo " 🏔️ Update changelog"
echo ""
git cliff -o CHANGELOG.md
git add CHANGELOG.md
git commit -S -m "chore: Update changelog"
git push

echo "🎉 $new_version released"
echo ""
echo " 🎉 Version $new_version released"
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,16 @@ The `serde` feature adds Serde `Serialize` and `Deserialize` traits to the `Trie
ptrie = { version = "0.5", features = ["serde"] }
```

> ⚠️ Feature not yet tested
## 🛠️ Contributing

Contributions are welcome, checkout the [`CONTRIBUTING.md`](https://github.com/vemonet/ptrie/blob/main/CONTRIBUTING.md) for instructions to run the project in development.

## 📜 License
## 📜 Changelog

Changelog available in the [`CHANGELOG.md`](https://github.com/vemonet/ptrie/blob/main/CHANGELOG.md).

## ⚖️ License

[MIT License](https://opensource.org/licenses/MIT)
12 changes: 6 additions & 6 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,14 @@ footer = """
<!-- generated by git-cliff -->
"""
postprocessors = [
{ pattern = '<REPO>', replace = "https://github.com/vemonet/ptrie" }, # replace repository URL
{ pattern = '<REPO>', replace = "https://github.com/vemonet/ptrie" },
]
[git]
# parse the commits based on https://www.conventionalcommits.org
# parse the commits basegitd on https://www.conventionalcommits.org
conventional_commits = true
filter_unconventional = false
# process each line of a commit as an individual commit
split_commits = false
# regex for preprocessing the commit messages
commit_preprocessors = [
# { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"}, # replace issue numbers
]
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^feat", group = "⛰️ Features" },
Expand Down Expand Up @@ -72,3 +68,7 @@ sort_commits = "oldest"
# ignore_tags = ""
# limit the number of commits included in the changelog.
# limit_commits = 42
# regex for preprocessing the commit messages
# commit_preprocessors = [
# # { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"}, # replace issue numbers
# ]

0 comments on commit e06dd4c

Please sign in to comment.