mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-22 20:41:50 +08:00
chore(ios): fix ios version (#13130)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added support for specifying a custom iOS App Store version during release workflows. * **Chores** * Updated the iOS app's marketing version to 0.23.1. * Upgraded the iOS workflow runner to macOS 15 and Xcode 16.4. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -4,9 +4,15 @@ inputs:
|
|||||||
app-version:
|
app-version:
|
||||||
description: 'App Version'
|
description: 'App Version'
|
||||||
required: true
|
required: true
|
||||||
|
ios-app-version:
|
||||||
|
description: 'iOS App Store Version (Optional, use App version if empty)'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
- name: 'Write Version'
|
- name: 'Write Version'
|
||||||
shell: bash
|
shell: bash
|
||||||
|
env:
|
||||||
|
IOS_APP_VERSION: ${{ inputs.ios-app-version }}
|
||||||
run: ./scripts/set-version.sh ${{ inputs.app-version }}
|
run: ./scripts/set-version.sh ${{ inputs.app-version }}
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ on:
|
|||||||
build-type:
|
build-type:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
|
ios-app-version:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BUILD_TYPE: ${{ inputs.build-type }}
|
BUILD_TYPE: ${{ inputs.build-type }}
|
||||||
@@ -78,7 +81,7 @@ jobs:
|
|||||||
path: packages/frontend/apps/android/dist
|
path: packages/frontend/apps/android/dist
|
||||||
|
|
||||||
ios:
|
ios:
|
||||||
runs-on: ${{ github.ref_name == 'canary' && 'macos-latest' || 'blaze/macos-14' }}
|
runs-on: 'macos-15'
|
||||||
needs:
|
needs:
|
||||||
- build-ios-web
|
- build-ios-web
|
||||||
steps:
|
steps:
|
||||||
@@ -87,6 +90,7 @@ jobs:
|
|||||||
uses: ./.github/actions/setup-version
|
uses: ./.github/actions/setup-version
|
||||||
with:
|
with:
|
||||||
app-version: ${{ inputs.app-version }}
|
app-version: ${{ inputs.app-version }}
|
||||||
|
ios-app-version: ${{ inputs.ios-app-version }}
|
||||||
- name: 'Update Code Sign Identity'
|
- name: 'Update Code Sign Identity'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: ./packages/frontend/apps/ios/update_code_sign_identity.sh
|
run: ./packages/frontend/apps/ios/update_code_sign_identity.sh
|
||||||
@@ -106,7 +110,7 @@ jobs:
|
|||||||
enableScripts: false
|
enableScripts: false
|
||||||
- uses: maxim-lobanov/setup-xcode@v1
|
- uses: maxim-lobanov/setup-xcode@v1
|
||||||
with:
|
with:
|
||||||
xcode-version: 16.2
|
xcode-version: 16.4
|
||||||
- name: Install Swiftformat
|
- name: Install Swiftformat
|
||||||
run: brew install swiftformat
|
run: brew install swiftformat
|
||||||
- name: Cap sync
|
- name: Cap sync
|
||||||
|
|||||||
@@ -21,6 +21,10 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
ios-app-version:
|
||||||
|
description: 'iOS App Store Version (Optional, use tag version if empty)'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -117,3 +121,4 @@ jobs:
|
|||||||
build-type: ${{ needs.prepare.outputs.BUILD_TYPE }}
|
build-type: ${{ needs.prepare.outputs.BUILD_TYPE }}
|
||||||
app-version: ${{ needs.prepare.outputs.APP_VERSION }}
|
app-version: ${{ needs.prepare.outputs.APP_VERSION }}
|
||||||
git-short-hash: ${{ needs.prepare.outputs.GIT_SHORT_HASH }}
|
git-short-hash: ${{ needs.prepare.outputs.GIT_SHORT_HASH }}
|
||||||
|
ios-app-version: ${{ inputs.ios-app-version }}
|
||||||
|
|||||||
@@ -541,7 +541,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"$(PROJECT_DIR)",
|
"$(PROJECT_DIR)",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 0.22.2;
|
MARKETING_VERSION = 0.23.1;
|
||||||
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
|
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = app.affine.pro;
|
PRODUCT_BUNDLE_IDENTIFIER = app.affine.pro;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
@@ -577,7 +577,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"$(PROJECT_DIR)",
|
"$(PROJECT_DIR)",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 0.22.2;
|
MARKETING_VERSION = 0.23.1;
|
||||||
ONLY_ACTIVE_ARCH = NO;
|
ONLY_ACTIVE_ARCH = NO;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = app.affine.pro;
|
PRODUCT_BUNDLE_IDENTIFIER = app.affine.pro;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
|||||||
@@ -99,6 +99,7 @@ update_ios_marketing_version() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
new_version=$1
|
new_version=$1
|
||||||
|
ios_new_version=${IOS_APP_VERSION:-$new_version}
|
||||||
|
|
||||||
update_app_version_in_helm_charts ".github/helm/affine/Chart.yaml" "$new_version"
|
update_app_version_in_helm_charts ".github/helm/affine/Chart.yaml" "$new_version"
|
||||||
update_app_version_in_helm_charts ".github/helm/affine/charts/graphql/Chart.yaml" "$new_version"
|
update_app_version_in_helm_charts ".github/helm/affine/charts/graphql/Chart.yaml" "$new_version"
|
||||||
|
|||||||
Reference in New Issue
Block a user