Skip to content

Commit

Permalink
fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahroz16 committed May 26, 2024
1 parent 5a81845 commit b475c56
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/tag-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0

- name: Install CocoaPods
run: gem install cocoapods

- name: Create and push tag
uses: rickstaa/action-create-tag@v1
id: tag_create
Expand All @@ -25,8 +33,7 @@ jobs:

- name: Manually update version and tag in podspec
run: |
sed -i.bak 's/s.version *= *"[^"]*"/s.version = "${{ github.event.inputs.tag }}"/' AnalyticsSwiftCIO.podspec
sed -i.bak 's/:tag => *"[^"]*"/:tag => "${{ github.event.inputs.tag }}"/' AnalyticsSwiftCIO.podspec
sed -i.bak 's/\(version = \)"[^"]*"/\1"${{ github.event.inputs.tag }}"/' AnalyticsSwiftCIO.podspec
rm AnalyticsSwiftCIO.podspec.bak
- name: Commit and push podspec
Expand Down
7 changes: 5 additions & 2 deletions AnalyticsSwiftCIO.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
Pod::Spec.new do |s|

version = "1.5.12+cio.1" # Define your version variable here

s.name = "AnalyticsSwiftCIO"
s.version = "1.5.12+cio.2"
s.version = version
s.license = { :type => 'MIT', :file => './LICENSE' }
s.summary = "Customer.io Data Pipelines analytics client for Swift app (iOS/tvOS/watchOS/macOS/Linux)."
s.homepage = "https://github.com/customerio/cdp-analytics-swift"
s.authors = "Customer.io"

# Make sure the tag is the same as what SPM customers are using.
# update branch to version
s.source = { :git => 'https://github.com/customerio/cdp-analytics-swift.git', :tag => '1.5.12+cio.1' }
s.source = { :git => 'https://github.com/customerio/cdp-analytics-swift.git', :tag => version }

s.ios.deployment_target = "13.0"
s.requires_arc = true
Expand Down

0 comments on commit b475c56

Please sign in to comment.