diff --git a/.github/workflows/cocoapods.yaml b/.github/workflows/cocoapods.yaml new file mode 100644 index 0000000..cccb3df --- /dev/null +++ b/.github/workflows/cocoapods.yaml @@ -0,0 +1,25 @@ +name: deploy_to_cocoapods + +on: + push: + tags: + - "*" + +jobs: + build: + runs-on: macOS-latest + + steps: + - uses: actions/checkout@v1 + + - name: Install Cocoapods + run: gem install cocoapods + + - name: Deploy to Cocoapods + run: | + set -eo pipefail + export LIB_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`) + pod lib lint --allow-warnings + pod trunk push --allow-warnings + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} diff --git a/Sources/TelemetryClient/TelemetryClient.h b/Sources/TelemetryClient/TelemetryClient.h index 175da12..5bbffaf 100644 --- a/Sources/TelemetryClient/TelemetryClient.h +++ b/Sources/TelemetryClient/TelemetryClient.h @@ -8,4 +8,3 @@ FOUNDATION_EXPORT const unsigned char TelemetryClientVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import #import - diff --git a/TelemetryClient.podspec b/TelemetryClient.podspec index 7a46d9e..2704c92 100644 --- a/TelemetryClient.podspec +++ b/TelemetryClient.podspec @@ -1,10 +1,25 @@ Pod::Spec.new do |spec| spec.name = "TelemetryClient" - spec.version = "1.4.2" + spec.version = ENV['LIB_VERSION'] || '1.5.0' #fallback to major version spec.summary = "Client SDK for TelemetryDeck" spec.swift_versions = "5.2" - spec.description = "This package allows you to send signals to TelemetryDeck from your Swift code. Sign up for a free account at telemetrydeck.com." - spec.homepage = "https://github.com/TelemetryDeck/SwiftClient" + spec.summary = "Swift SDK for TelemetryDeck, a privacy-first analytics service for apps. Sign up for a free account at telemetrydeck.com." + spec.description = <<-DESC + Build better products with live usage data. + Capture and analyize users moving through your app + and get help deciding how to grow, all without + compromising privacy! + + Setting up TelemetryDeck takes less than 10 minutes. + Immediately after publishing your app, TelemetryDeck + can show you a lot of base level information: + + How many users are new to your app? + How many users are active? + Which versions of your app are people running, and + on which operating system and device type are they? + DESC + spec.homepage = "https://telemetrydeck.com/?source=cocoapods" spec.license = { :type => "MIT", :file => "LICENSE" } spec.author = { "Daniel Jilg" => "daniel@telemetrydeck.com" } spec.ios.deployment_target = "12.0"