Skip to content

Commit

Permalink
Upload artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
dany-pellerin committed Nov 14, 2024
1 parent 7eab19d commit d98ab00
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 42 deletions.
49 changes: 30 additions & 19 deletions .github/workflows/ios-sdk-ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
name: "iOS SDK CI"

on:
pull_request:
# push: # TODO: To be validated
# branches-ignore: '*'
# tags:
# - '^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$'
pull_request:
push:
tags:
- "v.*"

jobs:
setup:
name: "Setup"
runs-on: macos-14
runs-on: macos-13
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand All @@ -19,10 +18,10 @@ jobs:
with:
ruby-version: 3.0.7
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

sdk-tests:
name: "SDK Tests"
runs-on: macos-14
runs-on: macos-13
needs: [setup]
steps:
- name: Checkout Code
Expand All @@ -40,7 +39,6 @@ jobs:
build-demo-swift:
name: "Build Demo Swift"
runs-on: macos-14

needs: [setup, sdk-tests]
steps:
- name: Checkout Code
Expand All @@ -50,11 +48,19 @@ jobs:
- name: Build Demo Swift
id: build-demo-swift
run: bundle exec fastlane demo_swift
# - name: Store Artifacts
# uses: actions/upload-artifact@v4
# with:
# name: demo-swift
# path:
- name: find output
run: ls -R
- name: Store Artifacts
uses: actions/upload-artifact@v4
with:
name: demo-swift
path: ./demo-ios-swift/Pods
- name: Store build log
uses: actions/upload-artifact@v4
with:
name: build-log-swift
path: /Users/runner/Library/Logs/gym


build-demo-objc:
name: "Build Demo Objective-C"
Expand All @@ -69,8 +75,13 @@ jobs:
run: bundle install
- name: Build Demo Objective-C
run: bundle exec fastlane demo_objc
# - name: Store Artifacts
# uses: actions/upload-artifact@v4
# with:
# name: demo-objc
# path:
- name: Store Artifacts
uses: actions/upload-artifact@v4
with:
name: demo-objc
path: ./demo-ios-objc/Pods
- name: Store build log
uses: actions/upload-artifact@v4
with:
name: build-log-objc
path: /Users/runner/Library/Logs/gym
48 changes: 28 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,38 @@
# Optable iOS SDK [![CircleCI](https://circleci.com/gh/Optable/optable-ios-sdk.svg?style=shield&circle-token=08842d5bffbe92f278b666f51f306076201e2839)](https://app.circleci.com/pipelines/github/Optable/optable-ios-sdk)
# Optable iOS SDK [![Github Actions](https://github.com/Optable/optable-ios-sdk/actions)](https://github.com/Optable/optable-ios-sdk/actions)

Swift SDK for integrating with an [Optable Data Connectivity Node (DCN)](https://docs.optable.co) from an iOS application.

You can use the SDK functionality from either a Swift or Objective-C iOS application.

## Contents

- [Installing](#installing)
- [Using (Swift)](#using-swift)
- [Identify API](#identify-api)
- [Profile API](#profile-api)
- [Targeting API](#targeting-api)
- [Witness API](#witness-api)
- [Integrating GAM360](#integrating-gam360)
- [Using (Objective-C)](#using-objective-c)
- [Identify API](#identify-api-1)
- [Profile API](#profile-api-1)
- [Targeting API](#targeting-api-1)
- [Witness API](#witness-api-1)
- [Integrating GAM360](#integrating-gam360-1)
- [Identifying visitors arriving from Email newsletters](#identifying-visitors-arriving-from-email-newsletters)
- [Insert oeid into your Email newsletter template](#insert-oeid-into-your-email-newsletter-template)
- [Capture clicks on universal links in your application](#capture-clicks-on-universal-links-in-your-application)
- [Call tryIdentifyFromURL SDK API](#call-tryidentifyfromurl-sdk-api)
- [Demo Applications](#demo-applications)
- [Building](#building)
- [Optable iOS SDK ](#optable-ios-sdk-)
- [Contents](#contents)
- [Installing](#installing)
- [Swift Package Manager](#swift-package-manager)
- [CocoaPods](#cocoapods)
- [Using (Swift)](#using-swift)
- [Identify API](#identify-api)
- [Profile API](#profile-api)
- [Targeting API](#targeting-api)
- [Caching Targeting Data](#caching-targeting-data)
- [Witness API](#witness-api)
- [Integrating GAM360](#integrating-gam360)
- [Using (Objective-C)](#using-objective-c)
- [Identify API](#identify-api-1)
- [Profile API](#profile-api-1)
- [Targeting API](#targeting-api-1)
- [Caching Targeting Data](#caching-targeting-data-1)
- [Witness API](#witness-api-1)
- [Integrating GAM360](#integrating-gam360-1)
- [Identifying visitors arriving from Email newsletters](#identifying-visitors-arriving-from-email-newsletters)
- [Insert oeid into your Email newsletter template](#insert-oeid-into-your-email-newsletter-template)
- [Capture clicks on universal links in your application](#capture-clicks-on-universal-links-in-your-application)
- [Call tryIdentifyFromURL SDK API](#call-tryidentifyfromurl-sdk-api)
- [Swift](#swift)
- [Objective-C](#objective-c)
- [Demo Applications](#demo-applications)
- [Building](#building)

## Installing

Expand Down
6 changes: 3 additions & 3 deletions releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ You should see a `demo-ios-{swift,objc}.xcworkspace` file locally in the demo ap

## Merge release preparation PR

Ensure all release preparation changes have been committed and pushed to the release preparation branch and that the draft PR passes all required checks, including the automated [CircleCI](https://app.circleci.com/pipelines/github/Optable/optable-ios-sdk) builds.
Ensure all release preparation changes have been committed and pushed to the release preparation branch and that the draft PR passes all required checks, including the automated [Github Actions](https://github.com/Optable/optable-ios-sdk/actions) builds.

Once the PR is ready, squash and merge it into `master` and delete the release preparation branch.

## Create the release

Ensure that the latest merged changes successfully pass all automated [CircleCI](https://app.circleci.com/pipelines/github/Optable/optable-ios-sdk) builds in `master`.
Ensure that the latest merged changes successfully pass all automated [Github Actions](https://github.com/Optable/optable-ios-sdk/actions) builds in `master`.

Draft a new release in the [GitHub Releases page](https://github.com/Optable/optable-ios-sdk/releases), specifying a new tag for creation with the tag name equal to the version of the release (example: 0.10.0). The release title should also be set to the release version number, and the description should include a list of important changes since the previous release. Publish the release.

Ensure that the [CircleCI](https://app.circleci.com/pipelines/github/Optable/optable-ios-sdk) release-builds which will run automatically when the release tag is published complete successfully.
Ensure that the [Github Actions](https://github.com/Optable/optable-ios-sdk/actions) release-builds which will run automatically when the release tag is published complete successfully.

## Publish latest spec to CocoaPods trunk

Expand Down

0 comments on commit d98ab00

Please sign in to comment.