Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions .github/workflows/create-release-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ on:
type: string
required: true
base_branch:
description: 'Target branch for the PR (e.g. main for regular releases, 5.3-main for 5.3.x releases)'
description: "Target branch for the PR (e.g. main for regular releases, 5.3-main for 5.3.x releases)"
type: string
required: false
default: 'main'
default: "main"

permissions:
contents: write
Expand Down Expand Up @@ -60,10 +60,8 @@ jobs:
ref: ${{ needs.prep.outputs.release_branch }}
fetch-depth: 0

- name: Configure Git
run: |
git config --local user.email "[email protected]"
git config --local user.name "github-actions[bot]"
- name: Setup Git User
uses: OneSignal/sdk-actions/.github/actions/setup-git-user@main

- name: Extract Current Version
id: extract_version
Expand All @@ -75,7 +73,7 @@ jobs:
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.2'
xcode-version: "15.2"

- name: Install the Apple distribution certificate and provisioning profile (OneSignal)
uses: apple-actions/import-codesign-certs@v2
Expand Down Expand Up @@ -194,6 +192,9 @@ jobs:
path: xcframework-repo
token: ${{ secrets.PAT_TOKEN_ONESIGNAL_XCFRAMEWORK }}

- name: Setup Git User
uses: OneSignal/sdk-actions/.github/actions/setup-git-user@main

- name: Update Package.swift in XCFramework Repository
run: |
# Copy Package.swift from iOS SDK to XCFramework repo
Expand All @@ -211,10 +212,6 @@ jobs:
# Create release branch
git checkout -b $RELEASE_BRANCH

# Configure git
git config --local user.email "[email protected]"
git config --local user.name "github-actions[bot]"

# Commit changes
git commit -am "Release $VERSION"

Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,23 @@ on:
workflow_dispatch:
inputs:
ref:
description: 'Branch or commit SHA to run on (e.g., main, 5.3-main)'
description: "Branch or commit SHA to run on (e.g., main, 5.3-main)"
type: string
required: false
default: 'main'
default: "main"

permissions:
contents: write
pull-requests: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
publish:
outputs:
sdk_version: ${{ steps.extract_version.outputs.version }}
runs-on: macos-13

env:
Expand Down Expand Up @@ -63,7 +66,7 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
ruby-version: "3.0"

- name: Install CocoaPods
run: |
Expand Down Expand Up @@ -181,3 +184,11 @@ jobs:
echo "📦 CocoaPods OneSignalXCFramework: https://cocoapods.org/pods/OneSignalXCFramework"
echo "🔗 iOS SDK Release: https://github.com/OneSignal/OneSignal-iOS-SDK/releases/tag/$VERSION"
echo "🔗 XCFramework Release: https://github.com/OneSignal/OneSignal-XCFramework/releases/tag/$VERSION"

wrapper_prs:
needs: publish
uses: OneSignal/sdk-actions/.github/workflows/create-wrapper-prs.yml@main
secrets:
GH_PUSH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }}
with:
ios_version: ${{ needs.publish.outputs.sdk_version }}
Loading