-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
787c7bb
commit 91b8ea7
Showing
6 changed files
with
39 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
# Check if a version argument is provided | ||
if [ $# -eq 0 ]; then | ||
echo "Please provide a version number" | ||
exit 1 | ||
fi | ||
|
||
NEW_VERSION=$1 | ||
|
||
# Update version in Cargo.toml | ||
cargo set-version "$NEW_VERSION" | ||
|
||
# Update version in flake.nix | ||
# This assumes a specific structure in flake.nix. Adjust the sed command as needed. | ||
sed -i "s/version = \".*\"/version = \"$NEW_VERSION\"/" flake.nix | ||
|
||
# Check if the sed command made changes | ||
if ! git diff --exit-code flake.nix; then | ||
echo "Updated version in flake.nix" | ||
else | ||
echo "No changes needed in flake.nix" | ||
fi | ||
|
||
# Commit the changes | ||
git add Cargo.lock **/Cargo.toml flake.nix | ||
git commit -m "Bump version to $NEW_VERSION" | ||
|
||
# Create and push a new tag | ||
git tag -a "v$NEW_VERSION" -m "Version $NEW_VERSION" | ||
git push && git push --tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "insanity-core" | ||
version = "0.1.0" | ||
version = "1.1.1" | ||
edition = "2021" | ||
|
||
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "insanity-tui-app" | ||
version = "0.1.0" | ||
version = "1.1.1" | ||
authors = ["Nicolas Chan <[email protected]>"] | ||
edition = "2018" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "insanity-tui-adapter" | ||
version = "0.1.0" | ||
version = "1.1.1" | ||
edition = "2021" | ||
|
||
[lib] | ||
|