Fastfile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # This file contains the fastlane.tools configuration
  2. # You can find the documentation at https://docs.fastlane.tools
  3. #
  4. # For a list of all available actions, check out
  5. #
  6. # https://docs.fastlane.tools/actions
  7. #
  8. # For a list of all available plugins, check out
  9. #
  10. # https://docs.fastlane.tools/plugins/available-plugins
  11. #
  12. # Uncomment the line if you want fastlane to automatically update itself
  13. # update_fastlane
  14. default_platform(:ios)
  15. platform :ios do
  16. desc "Push a new beta build to TestFlight"
  17. lane :beta do
  18. setup_ci
  19. app_store_connect_api_key(
  20. key_id: ENV["APP_STORE_CONNECT_API_KEY_KEY_ID"],
  21. issuer_id: ENV["APP_STORE_CONNECT_API_KEY_ISSUER_ID"],
  22. key_filepath: ENV["APP_STORE_CONNECT_API_KEY_KEY_FILEPATH"],
  23. )
  24. sync_code_signing(type: "appstore", readonly: true)
  25. build_number = increment_build_number(
  26. xcodeproj: "App.xcodeproj",
  27. build_number: latest_testflight_build_number + 1,
  28. )
  29. # Ref: https://docs.fastlane.tools/advanced/fastlane/#directory-behavior
  30. sh("../../../scripts/patch-xcode-project.sh")
  31. build_app(
  32. workspace: "App.xcworkspace",
  33. destination: "generic/platform=iOS",
  34. scheme: "Logseq",
  35. configuration: "Release",
  36. )
  37. upload_to_testflight(
  38. skip_submission: true,
  39. skip_waiting_for_build_processing: true,
  40. )
  41. slack(message: "App Build (#{build_number}) successfully uploaded to TestFlight 🎉!")
  42. end
  43. end