🚀

iOSアプリ配布やmatchで2FA対策は不要?fastlaneがAppStoreConnect APIに対応しました!

に公開
3

Discussion

Takeshi AkutsuTakeshi Akutsu

綺麗にまとまっていて、とても参考になりました!ありがとうございます。

こちらは好みの問題もあるかもしれませんが、返り値を使わない形で app_store_connect_api_key を実行すると、以降のactionでは api_key が自動設定されるようです。
参考までに、共有させていただきます。

The app_store_connect_api_key action sets Actions.lane_context[SharedValues::APP_STORE_CONNECT_API_KEY] and actions (like pilot) will automatically load the API Key from Actions.lane_context

lane :release do
  app_store_connect_api_key(
    key_id: "D383SF739",
    issuer_id: "6053b7fe-68a8-4acb-89be-165aa6465141",
    key_filepath: "./AuthKey_D383SF739.p8",
    duration: 1200, # optional (maximum 1200)
    in_house: false, # optional but may be required if using match/sigh
  )

  # Automatically loads Actions.lane_context[SharedValues::APP_STORE_CONNECT_API_KEY]
  pilot
end

参考: Use the shared value in lane context

mogamoga

おおーこれは便利ですね!これを使うほうがよさそうです、ありがとうございます!