Skip to content

Commit 989d581

Browse files
authored
Created release workflow (#69)
* Created release workflow * set name to action * fix release work flow syntex * keeping old version * Seting up cocoapod on github action
1 parent f413c0c commit 989d581

File tree

2 files changed

+41
-9
lines changed

2 files changed

+41
-9
lines changed

.github/workflows/release.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This workflow release package on Cocoapods.
2+
3+
name: Release
4+
on:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
build:
11+
runs-on: macOS-latest
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
16+
- name: Install CocoaPods
17+
run: gem install cocoapods
18+
19+
- name: Prepare and Publish
20+
env:
21+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
22+
run: |
23+
set -eo pipefail
24+
pod lib lint --allow-warnings
25+
pod trunk push RichEditorSwiftUI.podspec --allow-warnings

RichEditorSwiftUI.podspec

+16-9
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
11
Pod::Spec.new do |s|
2-
s.name = "RichEditorSwiftUI"
3-
s.version = "1.0.0"
4-
s.summary = "Rich text editing, SwiftUI rich text editor library."
2+
s.name = 'RichEditorSwiftUI'
3+
s.version = '1.0.0'
4+
s.summary = 'Powerful WYSIWYG Rich editor for SwiftUI.'
55

66
s.description = <<-DESC
77
Wrapper around UITextView to support Rich text editing in SwiftUI.
88
DESC
99

10-
s.homepage = "https://github.com/canopas/RichEditorSwiftUI"
11-
s.license = { :type => "MIT", :file => "LICENSE.md" }
12-
s.author = { "Jimmy" => "jimmy@canopas.com" }
13-
s.source = { :git => "https://github.com/canopas/rich-editor-swiftui.git", :tag => s.version.to_s }
14-
s.source_files = "Sources/*.swift"
10+
s.homepage = 'https://github.com/canopas/RichEditorSwiftUI'
11+
s.license = { :type => 'MIT', :file => 'LICENSE.md' }
12+
s.author = { 'Jimmy' => 'jimmy@canopas.com' }
13+
s.source = { :git => 'https://github.com/canopas/rich-editor-swiftui.git', :tag => s.version.to_s }
1514
s.social_media_url = 'https://x.com/canopas_eng'
1615

16+
s.source_files = 'Sources/**/*.swift'
17+
1718
s.module_name = 'RichEditorSwiftUI'
1819
s.requires_arc = true
20+
1921
s.swift_version = '5.9'
2022

23+
s.ios.deployment_target = '15.0'
24+
s.osx.deployment_target = '12.0'
25+
s.tvos.deployment_target = '17.0'
26+
s.visionos.deployment_target = '1.0'
27+
s.watchos.deployment_target = '8.0'
28+
2129
s.preserve_paths = 'README.md'
2230

23-
s.ios.deployment_target = '14.0'
2431
end

0 commit comments

Comments
 (0)