File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 11name : iOS CD
22
33on :
4+ push :
5+ branches :
6+ - ' add_cd'
7+
48 workflow_dispatch :
59 inputs :
610 version :
913 required : true
1014permissions :
1115 contents : write
16+ env :
17+ version : ' 5.0.6'
1218
1319jobs :
1420 build :
@@ -27,14 +33,15 @@ jobs:
2733
2834 - name : Build Binaries
2935 run : |
30- chmod +x ./../../iOS_SDK/OneSignalSDK/build_all_frameworks.sh
31- ./../../iOS_SDK/OneSignalSDK/build_all_frameworks.sh
32- # chmod +x ./../../iOS_SDK/OneSignalSDK/update_swift_package.sh
33- # ./../../iOS_SDK/OneSignalSDK/update_swift_package.sh
36+ chmod +x ./iOS_SDK/OneSignalSDK/build_all_frameworks.sh
37+ cd iOS_SDK/OneSignalSDK
38+ ./build_all_frameworks.sh
39+ # chmod +x ./iOS_SDK/OneSignalSDK/update_swift_package.sh
40+ # ./iOS_SDK/OneSignalSDK/update_swift_package.sh
3441 shell : bash
3542 - name : Commit Changes
3643 env :
37- version : ${{ inputs. version }}
44+ version : $version
3845 run : |
3946 git config --local user.email "[email protected] " 4047 git config --local user.name "SyncR 🤖"
@@ -47,18 +54,18 @@ jobs:
4754 # github_token: ${{ secrets.ACTION_TOKEN_PAT }}
4855 repository : ' OneSignal/OneSignal-iOS-SDK'
4956 force : true
50- branch : ${{ inputs. version }}
57+ branch : $version
5158
5259 - name : " Submitting PR"
53605461 with :
5562 route : POST /repos/{owner}/{repo}/pulls
5663 owner : OneSignal
5764 repo : OneSignal-iOS-SDK
58- head : ${{ inputs. version }}
65+ head : $version
5966 base : main
6067 title : |
61- "Release ${{ inputs. version }} "
68+ "Release $version"
6269 body : |
6370 "Add Release Notes For Review Here"
6471 # env:
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ create_xcframework() {
2424 echo " Created ${FRAMEWORK_FOLDER_NAME} "
2525 echo " Archiving ${FRAMEWORK_NAME} "
2626
27+ xcodebuild -list
28+
2729 xcodebuild archive ONLY_ACTIVE_ARCH=NO -scheme ${BUILD_SCHEME} -destination=" generic/platform=iOS Simulator" -archivePath " ${SIMULATOR_ARCHIVE_PATH} " -sdk iphonesimulator SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
2830
2931 xcodebuild archive -scheme ${BUILD_SCHEME} -destination=" generic/platform=iOS" -archivePath " ${IOS_DEVICE_ARCHIVE_PATH} " -sdk iphoneos SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
You can’t perform that action at this time.
0 commit comments