Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Commit

Permalink
read and set podspec tag
Browse files Browse the repository at this point in the history
  • Loading branch information
hewigovens committed Jun 10, 2020
1 parent 509b1c0 commit 5d29a2e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,3 @@ jobs:
- name: Run Tests
run: bundle exec fastlane ios tests
working-directory: ./Example
- name: Pod lint lib
if: github.ref == 'refs/heads/master'
run: |
set -eo pipefail
bundle exec pod lib lint --allow-warnings --verbose --platforms=ios
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: pod trunk push
run: |
set -eo pipefail
pod trunk push --allow-warnings
run: tools/pod-release
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
26 changes: 22 additions & 4 deletions TrustSDK.podspec → tools/pod-release
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
#!/bin/bash

set -eo pipefail

VERSION=$1
if [ -z "$VERSION" ]; then
VERSION=`git describe --long --tags | cut -f 1 -d "-"`
fi

PODSPEC_FILE="/tmp/TrustSDK_$VERSION.podspec"
echo Pushing version "$PODSPEC_FILE"

cat << EOF > "$PODSPEC_FILE"
Pod::Spec.new do |s|
s.name = 'TrustSDK'
s.version = '1.2.5'
s.version = '$VERSION'
s.summary = 'Trust Wallet SDK'
s.homepage = 'https://github.com/TrustWallet/TrustSDK-iOS'
s.homepage = 'https://github.com/trustwallet/TrustSDK-iOS'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.authors = { 'Leone Parise' => 'leoneparise', 'Viktor Radchenko' => 'vikmeup' }
s.source = { :git => 'https://github.com/TrustWallet/TrustSDK-iOS.git', :tag => s.version.to_s }
s.source = { :git => 'https://github.com/trustwallet/TrustSDK-iOS.git', :tag => s.version.to_s }
s.ios.deployment_target = '11.0'
s.swift_version = '5.1'
s.default_subspec = 'Client'
Expand All @@ -20,4 +33,9 @@ Pod::Spec.new do |s|
cs.source_files = 'TrustSDK/Classes/Wallet/**/*'
cs.dependency 'TrustSDK/Client'
end
end
end
EOF

# Upload to Cocoapod
echo "Done. running 'pod trunk push $PODSPEC_FILE'"
pod trunk push --allow-warnings "$PODSPEC_FILE"

0 comments on commit 5d29a2e

Please sign in to comment.