M flake.nix => flake.nix +2 -1
@@ 35,13 35,14 @@
cargo
cargo-edit
cargo-outdated
+ cargo-release
cargo-watch
clippy
git
llvmPackages_13.llvm
nixpkgs-fmt
- openssl
openssh
+ openssl
pkg-config
rustc
rustfmt
M release.toml => release.toml +4 -3
@@ 1,7 1,8 @@
+allow-branch = ["main"]
push-remote = "git@git.sr.ht:~cyplo/genpass"
pre-release-replacements = [
-{file="CHANGELOG.md", search="Unreleased", replace="{{version}}"},
-{file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}"},
-{file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n\n## [Unreleased] - ReleaseDate"},
+ {file = "CHANGELOG.md", search = "Unreleased", replace = "{{version}}"},
+ {file = "CHANGELOG.md", search = "ReleaseDate", replace = "{{date}}"},
+ {file = "CHANGELOG.md", search = "<!-- next-header -->", replace = "<!-- next-header -->\n\n## [Unreleased] - ReleaseDate"},
]
M scripts/release.sh => scripts/release.sh +1 -1
@@ 6,10 6,10 @@ if [ $(git tag --points-at HEAD | wc -m) -ne 0 ]; then
exit 0
fi
-cargo install cargo-release -f
export PATH="$PATH:$HOME/.cargo/bin"
ssh-keyscan git.sr.ht >> ~/.ssh/known_hosts
git config user.email "releases@cyplo.dev"
git config user.name "Release Bot"
+git config init.defaultBranch main
git checkout main
cargo release --no-dev-version --no-confirm --execute patch