From 3b8d79302e9d5ff3ad7959620e2317962c44843c Mon Sep 17 00:00:00 2001 From: Joe Newton Date: Thu, 28 Oct 2021 12:05:11 -0400 Subject: [PATCH 1/2] Added workflow for automatically publishing CocoaPods --- .github/workflows/publish-cocoapods.yml | 19 +++++++++++++++++++ Half.podspec | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish-cocoapods.yml diff --git a/.github/workflows/publish-cocoapods.yml b/.github/workflows/publish-cocoapods.yml new file mode 100644 index 0000000..839839f --- /dev/null +++ b/.github/workflows/publish-cocoapods.yml @@ -0,0 +1,19 @@ +name: Publish CocoaPods +on: + release: + types: [published] + +jobs: + publish: + name: Publish CocoaPods + runs-on: macOS-11 + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} + + steps: + - name: Checkout Code + uses: actions/checkout@v2 + + - name: Publish + run: | + pod trunk push Half.podspec diff --git a/Half.podspec b/Half.podspec index 05f2ca0..5be7eca 100644 --- a/Half.podspec +++ b/Half.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "Half" - s.version = "1.2.2" + s.version = "1.2.3" s.summary = "Swift Half-Precision Floating Point" s.description = <<-DESC A lightweight framework containing a Swift implementation for a half-precision floating point type for iOS, macOS, tvOS, and watchOS. From ed95a8913fed6b83ff36102befe187dd1499dde6 Mon Sep 17 00:00:00 2001 From: Joe Newton Date: Thu, 28 Oct 2021 12:09:58 -0400 Subject: [PATCH 2/2] Update publish-cocoapods.yml --- .github/workflows/publish-cocoapods.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-cocoapods.yml b/.github/workflows/publish-cocoapods.yml index 839839f..883a5eb 100644 --- a/.github/workflows/publish-cocoapods.yml +++ b/.github/workflows/publish-cocoapods.yml @@ -14,6 +14,11 @@ jobs: - name: Checkout Code uses: actions/checkout@v2 - - name: Publish + - name: Setup CocoaPods + uses: maxim-lobanov/setup-cocoapods@v1 + with: + version: latest + + - name: Publish CocoaPod run: | pod trunk push Half.podspec