Skip to content

Commit c3e0cff

Browse files
committed
update path
1 parent e38d83f commit c3e0cff

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

.github/workflows/cd.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: iOS CD
22

33
on:
4+
push:
5+
branches:
6+
- 'add_cd'
7+
48
workflow_dispatch:
59
inputs:
610
version:
@@ -9,6 +13,8 @@ on:
913
required: true
1014
permissions:
1115
contents: write
16+
env:
17+
version: '5.0.6'
1218

1319
jobs:
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"
5360
uses: octokit/[email protected]
5461
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:

iOS_SDK/OneSignalSDK/build_all_frameworks.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)