Skip to content

Commit

Permalink
Prepare version 1.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstyl committed Aug 3, 2024
1 parent 6955953 commit c9ac439
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repositories {
}

dependencies {
implementation("com.composables:core:1.9.0")
implementation("com.composables:core:1.10.0")
}
```

Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plugins {

val publishGroupId = "com.composables"
val publishArtifactId = "core"
val publishVersion = "1.10.0"
val publishVersion = "1.11.0"
val githubUrl = "github.com/composablehorizons/composables-core"

java {
Expand Down
2 changes: 1 addition & 1 deletion docs/bottom-sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repositories {
}

dependencies {
implementation("com.composables:core:1.9.0")
implementation("com.composables:core:1.10.0")
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/dialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repositories {
}

dependencies {
implementation("com.composables:core:1.9.0")
implementation("com.composables:core:1.10.0")
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/icon.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repositories {
}

dependencies {
implementation("com.composables:core:1.9.0")
implementation("com.composables:core:1.10.0")
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repositories {
}

dependencies {
implementation("com.composables:core:1.9.0")
implementation("com.composables:core:1.10.0")
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/modal-bottom-sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repositories {
}

dependencies {
implementation("com.composables:core:1.9.0")
implementation("com.composables:core:1.10.0")
}
```

Expand Down
24 changes: 15 additions & 9 deletions scripts/prepare_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,28 @@
# Define the root directory as the current directory
root_dir=$(pwd)

# Read the version from the keyboard
read -p "Enter docs version (e.g 1.0.0): " version
# Read the docs version from the keyboard
read -p "Enter docs version (e.g 1.0.0): " docs_version

# Find and update the version in .md files
find "$root_dir" -type f -name "*.md" -exec sed -i '' "s/implementation(\"com\.composables:core:[^\"]*\")/implementation(\"com.composables:core:$version\")/g" {} +
# Retrieve the last commit hash
last_commit=$(git rev-parse HEAD)

# Tag the last commit with the docs version
git tag "$docs_version" $last_commit

# Read the version from the keyboard
read -p "Enter WIP version (e.g., 1.8.0): " version
# Read the WIP version from the keyboard
read -p "Enter WIP version (e.g., 1.8.0): " wip_version

# Find and update the version in .md files
find "$root_dir" -type f -name "*.md" -exec sed -i '' "s/implementation(\"com\.composables:core:[^\"]*\")/implementation(\"com.composables:core:$docs_version\")/g" {} +

# Update the publishVersion value in build.gradle.kts
sed -i '' "s/^val publishVersion = \".*\"/val publishVersion = \"$version\"/" "$root_dir/core/build.gradle.kts"
sed -i '' "s/^val publishVersion = \".*\"/val publishVersion = \"$wip_version\"/" "$root_dir/core/build.gradle.kts"

# Add all changes to git
git add .

# Commit with the provided version in the message
git commit -m "Prepare version $version"
git commit -m "Prepare version $wip_version"

echo "👍 Updated all files and created a git commit"
echo "👍 Updated all files, created a git commit, and tagged the last commit with docs version $docs_version"

0 comments on commit c9ac439

Please sign in to comment.