Skip to content

Commit

Permalink
update fastfile
Browse files Browse the repository at this point in the history
  • Loading branch information
neilpoulin committed Feb 6, 2020
1 parent f7ddd89 commit 4a6ee3f
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,33 @@ platform :ios do
sh("echo", version)
end

lane :tag_version do
version = get_version_number(xcodeproj: "Cactus.xcodeproj", target: "Cactus Prod")
get_build_number
sh("echo", "version number is...#{version}")
sh("echo", version)
increment_version_number(version_number: version)
# increment_version_number()

full_build_name = "#{lane_context[SharedValues::VERSION_NUMBER]}.#{lane_context[SharedValues::BUILD_NUMBER]}"
sh("echo", "full build name#{full_build_name}")
add_git_tag(
tag: "v#{version}"
)
# git_push_to_remote( tags: true)
end

lane :patch do
version = get_version_number(xcodeproj: "Cactus.xcodeproj", target: "Cactus Prod")
sh("echo", "version number is...")
get_build_number
sh("echo", "version number is...#{version}")
sh("echo", version)
increment_version_number(version_number: version)
# increment_version_number()

increment_version_number(
# xcodeproj: "Cactus.xcodeproj",
# bump_type: "patch"
# bump_type: "patch"
)
end

Expand Down

0 comments on commit 4a6ee3f

Please sign in to comment.