diff --git a/_scripts/get_version.go b/_scripts/get_version.go index 5092c8f4..392d3203 100644 --- a/_scripts/get_version.go +++ b/_scripts/get_version.go @@ -23,7 +23,7 @@ func main() { log.Fatalf("Failed to read version file: %s", err) } versionFileContent := string(versionFileBytes) - re := regexp.MustCompile(`const VERSION = "(?P[0-9]+\.[0-9-]+)"`) + re := regexp.MustCompile(`const VERSION = "(?P[0-9]+\.[0-9-]\.[0-9-]+)"`) results := re.FindAllStringSubmatch(versionFileContent, -1) versionStr := "" for _, v := range results { diff --git a/bitrise.yml b/bitrise.yml index cd394827..d800b9eb 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -146,7 +146,7 @@ workflows: fi current_version="$(go run _scripts/get_version.go -file "$version_file_path")" - bumped_version=$(ruby -e "splits='${current_version}'.split('.');major=splits[0];minor=splits[1];puts \"#{major}.#{minor.to_i.next}\"") + bumped_version=$(ruby -e "splits='${current_version}'.split('.');major=splits[0];minor=splits[1];patch=splits[2];puts \"#{major}.#{minor}.#{patch.to_i.next}\"") bash _scripts/set_version.sh "$version_file_path" "$bumped_version" diff --git a/version/version.go b/version/version.go index ec9d20c5..11871964 100644 --- a/version/version.go +++ b/version/version.go @@ -1,4 +1,4 @@ package version // VERSION ... -const VERSION = "1.1" +const VERSION = "1.1.1"