Skip to content

Commit

Permalink
fastfile improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
czechboy0 committed Oct 13, 2015
1 parent b5e4810 commit 25fc58a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,19 @@ private_lane :run_tests do
end

lane :release do

run_tests
version = get_info_plist_value(
key: "CFBundleShortVersionString",
path: "Buildasaur/Info.plist"
)
build
release_no_build
end

lane :release_no_build do
raise "No built app found" unless File.exist?("../build/Buildasaur.app")
version = get_info_plist_value(
key: "CFBundleShortVersionString",
path: "Buildasaur/Info.plist"
)
github(
assets: ["./build/#{file_name}.app"],
assets: ["./build/Buildasaur.app"],
version: version
)
end
Expand Down

0 comments on commit 25fc58a

Please sign in to comment.