Skip to content

Commit

Permalink
Deployment workflow test
Browse files Browse the repository at this point in the history
  • Loading branch information
alleus committed Nov 8, 2023
1 parent 0a0cba7 commit eadcb81
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy_new_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy

on:
push:
branches: [main]
branches: [main, feature/standalone-mode]
workflow_dispatch:

jobs:
Expand All @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "14.2"
xcode-version: "15.0.1"
- run: swift run
working-directory: ./deploy_new_version
env:
Expand Down
14 changes: 7 additions & 7 deletions Example-app.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 52;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -935,17 +935,17 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = MUD77FXNE9;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 8ZL2DT9DQM;
INFOPLIST_FILE = "Example-app/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.swedbank.swedbank-pay-testapp-prod";
PRODUCT_BUNDLE_IDENTIFIER = com.swedbankpay.exampleapp;
PRODUCT_NAME = "Example-app";
PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Swedbank Pay SDK Demo App Distribution";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "iOS SDK Example App Distribution";
SWEDBANKPAY_SDK_CALLBACK_SCHEME = swedbankexample;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
Expand All @@ -963,17 +963,17 @@
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = MUD77FXNE9;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 8ZL2DT9DQM;
INFOPLIST_FILE = "Example-app/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.swedbank.swedbank-pay-testapp-prod";
PRODUCT_BUNDLE_IDENTIFIER = com.swedbankpay.exampleapp;
PRODUCT_NAME = "Example-app";
PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Swedbank Pay SDK Demo App Distribution";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "iOS SDK Example App Distribution";
SWEDBANKPAY_SDK_CALLBACK_SCHEME = swedbankexample;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down
4 changes: 2 additions & 2 deletions deploy_new_version/Sources/deploy/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ do {
try deployNewVersion(
projectDirectory: URL(fileURLWithPath: env("GITHUB_WORKSPACE")),
scheme: "Example-app",
bundleId: "com.swedbank.swedbank-pay-testapp-prod",
bundleId: "com.swedbankpay.exampleapp",
profileData: envBase64("XCODE_PROVISIONING_PROFILE"),
identityData: envBase64("XCODE_SIGNING_CERT"),
identityPassword: env("XCODE_SIGNING_CERT_PASSWORD"),
Expand All @@ -14,7 +14,7 @@ do {
appStoreConnectKeyIssuer: env("APPLE_APP_STORE_CONNECT_KEY_ISSUER_ID"),
buildSettings: [
"SWIFT_ACTIVE_COMPILATION_CONDITIONS=PROD_DEMO",
"SWEDBANKPAY_SDK_CALLBACK_SCHEME=swedbankprodtest"
"SWEDBANKPAY_SDK_CALLBACK_SCHEME=swedbankexample"
]
)
} catch {
Expand Down

0 comments on commit eadcb81

Please sign in to comment.