Commit 1d98760
authored
ci: Update release workflow (#1600)
* nit(cleanup): remove unused semantic version helpers
These methods are unused, leftover dead code.
* ci: Update `create-release-prs` workflow
* This script will read the VERSION and update the 2 podspec files and the ONESIGNAL_VERSION's in the SDK
* Add this to the CD script as a step.
* This is similar to existing scripts `update_swift_package.sh` and `build_all_frameworks.sh`
- Also, rename cd.yml to create-release-prs.yml for clarity
* ci: add `create-github-release.yml` to make tagged release with zips
Creates GH release for OneSignal-iOS-SDK.
Does not create release for OneSignal-XCFramework
* ci: add `publish-release.yml` to push to pods, SPM
* Pushes OneSignal and OneSignalXCFramework pods
* Takes the release notes from OneSignal-iOS-SDK and makes a release XCFramework
* chore: delete stale workflow files
* use updated shared workflows consider target branch
* Add warning to Package.swift
* For release automation workflow, we copy Package.swift to the XCFramework repository and rename the package name from "OneSignalFramework" to "OneSignalXCFramework". Since there are multiple occurrances of `name: "OneSignalFramework"` in this file, we ONLY want to change line 7!
* chore: use ubuntu-latest for upload-assets job
The upload-assets job only needs to upload zip files using gh CLI, which works fine on Ubuntu. This saves on macOS runner costs.
* chore: auto-trigger create-github-release on release PR merge
Change workflow to automatically run when release PRs are merged.
- Trigger on pull_request closed event instead of workflow_dispatch
- Only run if PR was merged and title contains 'Release'
- Support both main and version branches (e.g., 5.3-main)
- Use PR base branch for checkout instead of manual input1 parent 47972a4 commit 1d98760
File tree
12 files changed
+589
-212
lines changed- .github
- workflows
- iOS_SDK/OneSignalSDK
- OneSignalCore/Source/Categories
- Source
12 files changed
+589
-212
lines changedThis file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
0 commit comments