diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index 58c2aa824..9732e01dc 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -25,53 +25,32 @@ platform :ios do scan end - desc "Update certificates and profiles" + desc "Deploy a new version to the App Store" lane :update_match do - # Before calling match, we make sure all our devices are registered on the Apple Developer Portal - create_keychain( - name: ENV["MATCH_KEYCHAIN_NAME"], - password: ENV["MATCH_KEYCHAIN_PASSWORD"], - default_keychain: true, - unlock: true, - timeout: 3600, - add_to_search_list: true - ) - - unlock_keychain( - path: ENV["MATCH_KEYCHAIN_NAME"], - add_to_search_list: :replace, - password: ENV['MATCH_KEYCHAIN_PASSWORD'] - ) - register_devices( devices_file: "./fastlane/devices.txt" ) - # After registering the new devices, we'll make sure to update the provisioning profile if necessary - # options for type are "adhoc", "development", "appstore" match( app_identifier: "com.EverFox.AnimeTrakr", + git_url: "https://github.com/hummingbird-me/certificates.git", type: "development", - force_for_new_devices: true, - keychain_name: ENV["MATCH_KEYCHAIN_NAME"], - keychain_password: ENV["MATCH_KEYCHAIN_PASSWORD"] + force_for_new_devices: true ) match( app_identifier: "com.EverFox.AnimeTrakr", - type: "appstore", - force_for_new_devices: true, - keychain_name: ENV["MATCH_KEYCHAIN_NAME"], - keychain_password: ENV["MATCH_KEYCHAIN_PASSWORD"] + git_url: "https://github.com/hummingbird-me/certificates.git", + type: "adhoc", + force_for_new_devices: true ) - match( + match( app_identifier: "com.EverFox.AnimeTrakr", - type: "adhoc", - force_for_new_devices: true, - keychain_name: ENV["MATCH_KEYCHAIN_NAME"], - keychain_password: ENV["MATCH_KEYCHAIN_PASSWORD"] + git_url: "https://github.com/hummingbird-me/certificates.git", + type: "appstore" ) + end desc "Generate a new Build" @@ -140,14 +119,13 @@ platform :ios do desc "Submit a new Alpha/Beta Build to Testflight" lane :alpha_testflight do - update_match() - #build() + build() # Auto submit for alpha testers - #pilot( - # skip_submission: true, - # skip_waiting_for_build_processing: true, - #) + pilot( + skip_submission: true, + skip_waiting_for_build_processing: true, + ) end desc "Deploy a new version to the App Store" diff --git a/ios/fastlane/Matchfile b/ios/fastlane/Matchfile index e38c6bfdf..33b23903a 100644 --- a/ios/fastlane/Matchfile +++ b/ios/fastlane/Matchfile @@ -1,5 +1,5 @@ -# git_url "git@github.com:hummingbird-me/certificates.git" # ssh key -git_url "https://github.com/hummingbird-me/certificates.git" +git_url "git@github.com:hummingbird-me/certificates.git" # ssh key +# git_url "https://github.com/hummingbird-me/certificates.git" app_identifier "com.EverFox.AnimeTrakr" username "josh@kitsu.io" # Your Apple Developer Portal username diff --git a/ios/fastlane/README.md b/ios/fastlane/README.md index 4f692d6d6..9df42fd96 100644 --- a/ios/fastlane/README.md +++ b/ios/fastlane/README.md @@ -8,11 +8,25 @@ Make sure you have the latest version of the Xcode command line tools installed: xcode-select --install ``` -Install _fastlane_ using -``` -[sudo] gem install fastlane -NV -``` -or alternatively using `brew cask install fastlane` +## Choose your installation method: + + + + + + + + + + + + + + +
Homebrew +Installer Script +Rubygems +
macOSmacOSmacOS or Linux with Ruby 2.0.0 or above
brew cask install fastlaneDownload the zip file. Then double click on the install script (or run it in a terminal window).sudo gem install fastlane -NV
# Available Actions ## iOS @@ -25,17 +39,14 @@ Runs all the tests ``` fastlane ios update_match ``` -Update certificates and profiles -### ios build -``` -fastlane ios build -``` -Generate a new Build -### ios alpha_testflight +Deploy a new version to the App Store +### ios beta ``` -fastlane ios alpha_testflight +fastlane ios beta ``` -Submit a new Alpha/Beta Build to Testflight +Submit a new Beta Build to crashlytics + +This will also make sure the profile is up to date ### ios release ``` fastlane ios release