mirror of
https://github.com/immich-app/immich.git
synced 2026-05-19 05:52:14 -04:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 942c53d9fe |
@@ -7,7 +7,7 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
environment:
|
environment:
|
||||||
description: 'Target environment'
|
description: 'Target environment (development, rc, or production)'
|
||||||
required: true
|
required: true
|
||||||
default: 'development'
|
default: 'development'
|
||||||
type: string
|
type: string
|
||||||
@@ -298,10 +298,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# Only upload to TestFlight on main branch
|
# Only upload to TestFlight on main branch
|
||||||
if [[ "$GITHUB_REF" == "refs/heads/main" ]]; then
|
if [[ "$GITHUB_REF" == "refs/heads/main" ]]; then
|
||||||
if [[ "$ENVIRONMENT" == "development" ]]; then
|
if [[ "$ENVIRONMENT" == "rc" ]]; then
|
||||||
bundle exec fastlane gha_testflight_dev
|
bundle exec fastlane gha_testflight_rc
|
||||||
else
|
elif [[ "$ENVIRONMENT" == "production" ]]; then
|
||||||
bundle exec fastlane gha_release_prod
|
bundle exec fastlane gha_release_prod
|
||||||
|
elif [[ "$ENVIRONMENT" == "development" ]]; then
|
||||||
|
bundle exec fastlane gha_testflight_dev
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Build only, no TestFlight upload for non-main branches
|
# Build only, no TestFlight upload for non-main branches
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
default_platform(:android)
|
default_platform(:android)
|
||||||
|
|
||||||
platform :android do
|
platform :android do
|
||||||
desc "Build Android and Release Testing"
|
desc "Build and Release Android RC to Open Testing"
|
||||||
lane :beta do
|
lane :rc do
|
||||||
gradle(
|
gradle(
|
||||||
task: 'bundle',
|
task: 'bundle',
|
||||||
build_type: 'Release',
|
build_type: 'Release',
|
||||||
|
|||||||
@@ -169,6 +169,37 @@ end
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
desc "iOS RC Build to public TestFlight"
|
||||||
|
lane :gha_testflight_rc do
|
||||||
|
api_key = get_api_key
|
||||||
|
|
||||||
|
sigh(api_key: api_key, app_identifier: DEV_BUNDLE_ID, force: true)
|
||||||
|
main_profile_name = lane_context[SharedValues::SIGH_NAME]
|
||||||
|
|
||||||
|
sigh(api_key: api_key, app_identifier: "#{DEV_BUNDLE_ID}.ShareExtension", force: true)
|
||||||
|
share_profile_name = lane_context[SharedValues::SIGH_NAME]
|
||||||
|
|
||||||
|
sigh(api_key: api_key, app_identifier: "#{DEV_BUNDLE_ID}.Widget", force: true)
|
||||||
|
widget_profile_name = lane_context[SharedValues::SIGH_NAME]
|
||||||
|
|
||||||
|
configure_code_signing(
|
||||||
|
base_bundle_id: DEV_BUNDLE_ID,
|
||||||
|
profile_name_main: main_profile_name,
|
||||||
|
profile_name_share: share_profile_name,
|
||||||
|
profile_name_widget: widget_profile_name
|
||||||
|
)
|
||||||
|
|
||||||
|
build_and_upload(
|
||||||
|
api_key: api_key,
|
||||||
|
base_bundle_id: DEV_BUNDLE_ID,
|
||||||
|
version_number: get_version_from_pubspec.split('-').first,
|
||||||
|
distribute_external: true,
|
||||||
|
profile_name_main: main_profile_name,
|
||||||
|
profile_name_share: share_profile_name,
|
||||||
|
profile_name_widget: widget_profile_name
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
desc "iOS Release to TestFlight"
|
desc "iOS Release to TestFlight"
|
||||||
lane :gha_release_prod do
|
lane :gha_release_prod do
|
||||||
api_key = get_api_key
|
api_key = get_api_key
|
||||||
|
|||||||
Reference in New Issue
Block a user