ios - 使用 faSTLane 上传到 S3

标签 ios fastlane

我一直在使用 faSTLane 将应用程序上传到曲棍球和 testflight。

我也想用于 S3 并检查他们的文档。我对S3的了解有限。

https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md

s3(
  # All of these are used to make Shenzhen's `ipa distribute:s3` command
  access_key: ENV['S3_ACCESS_KEY'],               # Required from user.
  secret_access_key: ENV['S3_SECRET_ACCESS_KEY'], # Required from user.
  bucket: ENV['S3_BUCKET'],                       # Required from user.
  ipa: 'AppName.ipa',                             # Optional is you use `ipa` to build
  dsym: 'AppName.app.dSYM.zip',                   # Optional is you use `ipa` to build
  path: 'v{CFBundleShortVersionString}_b{CFBundleVersion}/', # This is actually the default.
  upload_metadata: true,                          # Upload version.json, plist and HTML. Set to false to skip uploading of these files.
  version_file_name: 'app_version.json',          # Name of the file to upload to S3. Defaults to 'version.json'
  version_template_path: 'path/to/erb'            # Path to an ERB to configure the structure of the version JSON file
)

如果我需要上传到/Main/bin/Dev,我的存储桶将是 Main。但是我在哪里以及如何描述我的路径?它在这里(路径:) 吗?

他们说

It is recommended to not store the AWS access keys in the Fastfile.



如果是这样,我可以将 AWS 访问 key 放在哪里?它仍将位于其中一个文本文件中,并将提交到 svn 或 git。

最佳答案

想法是将其存储在环境变量中,通常人们使用.env为了那个原因。确保不提交 .版本控制中的文件。

关于ios - 使用 faSTLane 上传到 S3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39157644/

相关文章:

ios - 为一个 Controller [ Storyboard] 创建纵向和横向 View 的最佳方法是什么?

ios - 将对象添加到 NSArray 时程序崩溃

android - Google Play Dev Console 自动化创建新应用

ios - 无法创建此类应用程序/faSTLane 生成

iOS 代码签名 FaSTLane 匹配错误

ios - Swift - 将 Int 保存到核心数据只能工作一次

ios - swift IOS : Call Specific function of UIviewController when open app from notification

ios - FaSTLane sigh 配置文件未正确安装

ios - 执行 deliver init 时多个命令会产生错误

ios - 如何优化 UIPageViewController 使其具有类似于 tableView.dequeueReusableCell(withIdentifier :for:)?