Skip to content

Commit

Permalink
Release 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-terczynski committed Jun 21, 2024
1 parent 830c364 commit 2793aac
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
val localVersionName = "local"

group = "com.github.thumbtack"
version = "0.0.1"
version = "0.0.2"

plugins {
alias(libs.plugins.kotlinMultiplatform)
Expand Down
29 changes: 29 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

set -e -o pipefail

if [ "$1" == "" ]
then
echo "Usage: release.sh <version>"
exit 1
fi

git checkout -b "release/$1"

# Update version in podspec.
# (Search podspec for `version = '1.2.3` and update with new version
# number passed in as script argument).
#
# Regex pattern adapted from
# https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
# for compatibility with sed.
sed -i "" -E "s/version *= *(["'"'"'])(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-(0|[1-9][0-9]]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?["'"'"']/version = \1$1\1/g" library/build.gradle.kts

# Commit changes and push.
git add --all
git commit -m "Release $1"
git push origin "$(git branch --show-current)"
git checkout main
git merge "release/$1"
git push origin main
git tag "$1"
Empty file added version.properties
Empty file.

0 comments on commit 2793aac

Please sign in to comment.