Skip to content

Commit

Permalink
Merge pull request SomeRandomiOSDev#10 from SomeRandomiOSDev/PublishC…
Browse files Browse the repository at this point in the history
…ocoaPods

Added workflow for automatically publishing CocoaPods
  • Loading branch information
SomeRandomiOSDev authored Oct 28, 2021
2 parents 13311b9 + ed95a89 commit 12b4a6e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/publish-cocoapods.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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: Setup CocoaPods
uses: maxim-lobanov/setup-cocoapods@v1
with:
version: latest

- name: Publish CocoaPod
run: |
pod trunk push Half.podspec
2 changes: 1 addition & 1 deletion Half.podspec
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 12b4a6e

Please sign in to comment.