Skip to content

Commit

Permalink
set pod version from release
Browse files Browse the repository at this point in the history
  • Loading branch information
ypopovych committed Aug 11, 2023
1 parent 560f8f9 commit 97806d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ jobs:
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_14.0.app
- name: Publish Pod
run: pod trunk push --allow-warnings
run: |
VERSION=$(echo "${VERSION_TAG}" | sed "s|^v\(.*\)$|\1|g")
sed -i '' "s|[[:blank:]]*s\.version[[:blank:]].*|s.version = '${VERSION}'|g" Swift-BigInt.podspec
pod trunk push --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
VERSION_TAG: ${{ github.event.release.tag_name }}

2 changes: 1 addition & 1 deletion Swift-BigInt.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "Swift-BigInt"
s.version = "2.2.0"
s.version = "999.99.9"
s.summary = "A lightweight, high performance bignum library for Swift!"

# This description is used to generate tags and improve search results.
Expand Down

0 comments on commit 97806d9

Please sign in to comment.