Compare commits
2 Commits
cdc04ab266
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
140d5881af | ||
|
|
3d4fd8d048 |
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -147,7 +147,7 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "chkr"
|
name = "chkr"
|
||||||
version = "0.2.0"
|
version = "0.3.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"argh",
|
"argh",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "chkr"
|
name = "chkr"
|
||||||
version = "0.2.0"
|
version = "0.3.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@@ -6,11 +6,22 @@ VERSION="$(git cliff --bumped-version)"
|
|||||||
VERSION_CLEAN="${VERSION#v}"
|
VERSION_CLEAN="${VERSION#v}"
|
||||||
sed -i "s/^version = \".*\"/version = \"${VERSION_CLEAN}\"/" Cargo.toml
|
sed -i "s/^version = \".*\"/version = \"${VERSION_CLEAN}\"/" Cargo.toml
|
||||||
cargo check
|
cargo check
|
||||||
|
|
||||||
echo Press Y to commit version bump to ${VERSION_CLEAN}
|
echo Press Y to commit version bump to ${VERSION_CLEAN}
|
||||||
read -r CONFIRM
|
read -r CONFIRM
|
||||||
if [ "${CONFIRM}" != "Y" ]; then
|
if [ "${CONFIRM}" != "Y" ]; then
|
||||||
echo Aborting
|
echo Aborting
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git commit -am "chore: bump version to ${VERSION}"
|
git commit -am "chore: bump version to ${VERSION}"
|
||||||
git tag -am "Version ${VERSION}" "${VERSION}"
|
git tag -am "Version ${VERSION}" "${VERSION}"
|
||||||
|
|
||||||
|
echo Press Y to push commit and tag
|
||||||
|
read -r CONFIRM
|
||||||
|
if [ "${CONFIRM}" != "Y" ]; then
|
||||||
|
echo Aborting
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
git push
|
||||||
|
git push --tags
|
||||||
|
|||||||
Reference in New Issue
Block a user