ci(ios): prepare App Store review submission

This commit is contained in:
tianma-if committed 2026-08-23 12:17:31 +08:00
1 parent e60c5f9031
commit 3bf2eecbf0
2 files changed
+39 -2

No files matched your search

+33 -1
View File
@@ -12,6 +12,7 @@ on:
- start
- monitor
- store-status
- submit-review
default: inspect
workflow_id:
description: Optional Xcode Cloud workflow ID; auto-selects a single enabled Archive workflow when empty
@@ -36,7 +37,7 @@ permissions:
jobs:
xcode-cloud:
if: github.repository == 'tianma-if/edgeever'
if: github.repository == 'tianma-if/edgeever' && inputs.mode != 'submit-review'
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
@@ -261,3 +262,34 @@ jobs:
f"status={attributes.get('executionProgress')}"
)
PY
submit-review:
if: github.repository == 'tianma-if/edgeever' && inputs.mode == 'submit-review'
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Check out the submission source
uses: actions/checkout@v4
- name: Install fastlane
run: gem install fastlane --no-document
- name: Submit App Store build for review
env:
APP_STORE_BUILD_NUMBER: "38"
APP_STORE_CONNECT_API_ISSUER_ID: ${{ secrets.EDGEEVER_APPLE_API_ISSUER }}
APP_STORE_CONNECT_API_KEY_ID: ${{ secrets.EDGEEVER_APPLE_API_KEY_ID }}
APP_STORE_CONNECT_API_KEY_P8_BASE64: ${{ secrets.EDGEEVER_APPLE_API_KEY_BASE64 }}
APP_STORE_RELEASE_NOTES_ZH: |-
新增精美的笔记分享图片导出,支持 PNG/JPEG、8 款海报主题、排版与品牌样式调节。
支持通过 @ 建议快速链接笔记,并可从编辑器直接打开引用。
新增插入当前日期或时间的编辑器斜杠命令。
提升同步占位记录协调时的编辑内容保留可靠性。
APP_STORE_RELEASE_NOTES_EN: |-
Export polished shareable note images as PNG or JPEG with eight poster themes, typography controls, and brand styling.
Link notes with @ suggestions and open references directly from the editor.
Insert the current date or time through new editor slash commands.
Preserve edits more reliably while reconciling synchronized memo placeholders.
APP_STORE_VERSION: ${{ inputs.app_store_version }}
run: fastlane ios submit_review
working-directory: apps/ios
+6 -1
View File
@@ -7,6 +7,10 @@ platform :ios do
lane :submit_review do
version = ENV.fetch("APP_STORE_VERSION")
build_number = ENV.fetch("APP_STORE_BUILD_NUMBER")
release_notes = {
"zh-Hans" => ENV.fetch("APP_STORE_RELEASE_NOTES_ZH"),
"en-US" => ENV.fetch("APP_STORE_RELEASE_NOTES_EN")
}
api_key = app_store_connect_api_key(
key_id: ENV.fetch("APP_STORE_CONNECT_API_KEY_ID"),
@@ -26,8 +30,9 @@ platform :ios do
phased_release: false,
force: true,
skip_binary_upload: true,
skip_metadata: true,
skip_metadata: false,
skip_screenshots: true,
release_notes: release_notes,
run_precheck_before_submit: false,
precheck_include_in_app_purchases: false
)