Skip to content

Commit

Permalink
(build) Prepare the next release
Browse files Browse the repository at this point in the history
  • Loading branch information
rlespinasse committed Jan 7, 2024
1 parent a038ce2 commit 1f984e9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

<!-- next-header -->
## [Unreleased] - ReleaseDate

### Added

- Move to Rust 2021 to be up-to-date

### Fixed

- Update dependencies to avoid vulnerabilities

## [1.2.0] - 2022-07-25

### Added
Expand Down Expand Up @@ -67,5 +76,4 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
[Unreleased]: https://github.com/rlespinasse/wints/compare/v1.2.0...HEAD
[1.2.0]: https://github.com/rlespinasse/wints/compare/v1.1.0...v1.2.0
[1.1.0]: https://github.com/rlespinasse/wints/compare/v1.0.0...v1.1.0

[1.0.0]: https://github.com/rlespinasse/drawio-exported/compare/cb9aec8...v1.0.0
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ clippy:

clippy-fix:
@echo + $@
cargo clippy --fix --all-features --all-targets --allow-dirty
cargo clippy --fix --all-features --all-targets --allow-dirty --allow-staged

fix:
@echo + $@
cargo fix --allow-dirty
cargo fix --allow-dirty --allow-staged

idioms-fix:
@echo + $@
cargo fix --edition-idioms --allow-dirty
cargo fix --edition-idioms --allow-dirty --allow-staged

update:
@echo + $@
Expand All @@ -47,8 +47,8 @@ deps:

release-%:
@echo + $@
cargo release -- $*
cargo release --execute $*

dryrun-release-%:
@echo + $@
cargo release --dry-run -vv -- $*
cargo release $*
11 changes: 5 additions & 6 deletions release.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
pre-release-commit-message = "(build) Release {{version}}"
no-dev-version = true
pre-release-replacements = [
{ file = "CHANGELOG.md", search = "Unreleased", replace = "{{version}}" },
{ file = "CHANGELOG.md", search = "\\.\\.\\.HEAD", replace = "...{{tag_name}}" },
{ file = "CHANGELOG.md", search = "ReleaseDate", replace = "{{date}}" },
{ file = "CHANGELOG.md", search = "<!-- next-header -->", replace = "<!-- next-header -->\n## [Unreleased] - ReleaseDate" },
{ file = "CHANGELOG.md", search = "<!-- next-url -->", replace = "<!-- next-url -->\n[Unreleased]: https://github.com/rlespinasse/wints/compare/{{tag_name}}...HEAD" },
{file="CHANGELOG.md", search="Unreleased", replace="{{version}}"},
{file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}"},
{file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}"},
{file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate"},
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/rlespinasse/drawio-exporter/compare/{{tag_name}}...HEAD"},
]

0 comments on commit 1f984e9

Please sign in to comment.