Skip to content

Commit

Permalink
Bump version to 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaschan committed Sep 4, 2024
1 parent 787c7bb commit 91b8ea7
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions create_release.sh
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
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

packages.default = pkgs.rustPlatform.buildRustPackage {
pname = "insanity";
version = "1.1.0";
version = "1.1.1";
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
Expand Down
2 changes: 1 addition & 1 deletion insanity-core/Cargo.toml
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]
2 changes: 1 addition & 1 deletion insanity-native-tui-app/Cargo.toml
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"

Expand Down
2 changes: 1 addition & 1 deletion insanity-tui-adapter/Cargo.toml
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]
Expand Down

0 comments on commit 91b8ea7

Please sign in to comment.