Skip to content

Commit

Permalink
Add GH Action
Browse files Browse the repository at this point in the history
  • Loading branch information
winsmith committed Jan 11, 2024
1 parent 93f16ad commit 9e70726
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/cocoapods.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion TelemetryDeckSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "TelemetryDeckSDK"
spec.version = "1.5.0"
spec.version = ENV['LIB_VERSION'] || '1.5.0' #fallback to major version
spec.summary = "Client SDK for TelemetryDeck"
spec.swift_versions = "5.2"
spec.summary = "Swift SDK for TelemetryDeck, a privacy-first analytics service for apps. Sign up for a free account at telemetrydeck.com."
Expand Down

0 comments on commit 9e70726

Please sign in to comment.