Skip to content

test swift packages

test swift packages #9

Workflow file for this run

name: iOS CD
on:
push:
branches:
- 'add_cd'
workflow_dispatch:
inputs:
version:
type: string
description: "The version number of the release"
required: true
permissions:
contents: write
env:
version: '5.0.6'
jobs:
build:
name: Build the binaries for the release and create a PR
runs-on: macos-13
steps:
- name: setup xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.1'
- name: Checkout OneSignal-iOS-SDK
uses: actions/checkout@v4
- name: Install the Apple certificate and provisioning profile
uses: apple-actions/import-codesign-certs@v2
with:
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
# - name: Bump Version Number
# run: |
- name: Build Binaries
run: |
chmod +x ./iOS_SDK/OneSignalSDK/build_all_frameworks.sh
cd iOS_SDK/OneSignalSDK
./build_all_frameworks.sh
chmod +x ./iOS_SDK/OneSignalSDK/update_swift_package.sh
./iOS_SDK/OneSignalSDK/update_swift_package.sh $version
shell: bash
- name: Commit Changes
env:
version: $version
run: |
git config --local user.email "[email protected]"
git config --local user.name "SyncR 🤖"
git add .
git commit -m "Release $version"
- name: Pushing changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository: 'OneSignal/OneSignal-iOS-SDK'
force: true
branch: $version
- name: "Submitting PR"
uses: octokit/[email protected]
with:
route: POST /repos/{owner}/{repo}/pulls
owner: OneSignal
repo: OneSignal-iOS-SDK
head: $version
base: main
title: |
"Release $version"
body: |
"Add Release Notes For Review Here"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}