Skip to content

Commit 12b4a6e

Browse files
Merge pull request #10 from SomeRandomiOSDev/PublishCocoaPods
Added workflow for automatically publishing CocoaPods
2 parents 13311b9 + ed95a89 commit 12b4a6e

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish CocoaPods
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
name: Publish CocoaPods
9+
runs-on: macOS-11
10+
env:
11+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
12+
13+
steps:
14+
- name: Checkout Code
15+
uses: actions/checkout@v2
16+
17+
- name: Setup CocoaPods
18+
uses: maxim-lobanov/setup-cocoapods@v1
19+
with:
20+
version: latest
21+
22+
- name: Publish CocoaPod
23+
run: |
24+
pod trunk push Half.podspec

Half.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "Half"
4-
s.version = "1.2.2"
4+
s.version = "1.2.3"
55
s.summary = "Swift Half-Precision Floating Point"
66
s.description = <<-DESC
77
A lightweight framework containing a Swift implementation for a half-precision floating point type for iOS, macOS, tvOS, and watchOS.

0 commit comments

Comments
 (0)