Add release automation (#175)

* Add release workflow

* Update podspec file

* Set iOS deployment target to iOS 9

Fixes 'The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.2.99.'

* Specify paths for CI runs for PRs
This commit is contained in:
Mattt 2021-01-02 03:28:57 -08:00 committed by GitHub
parent 57d7ebc03f
commit 807d73e9be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 6 deletions

View File

@ -5,6 +5,10 @@ on:
branches: [master]
pull_request:
branches: [master]
paths:
- .github/workflows/ci.yml
- .swiftlint.yml
- "**/*.swift"
jobs:
lint:

24
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Release
on:
push:
tags:
- "*.*.*"
jobs:
release:
name: Push release to CocoaPods Trunk
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy to Cocoapods
run: |
pod lib lint --allow-warnings
pod trunk push --allow-warnings
shell: bash
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

View File

@ -3,19 +3,18 @@ Pod::Spec.new do |s|
s.version = '2.3.0'
s.license = 'MIT'
s.summary = 'Swift + Accelerate'
s.homepage = 'https://github.com/jounce/Surge'
s.social_media_url = 'http://twitter.com/mattt'
s.homepage = 'https://github.com/Jounce/Surge'
s.authors = {
'Mattt Thompson' => 'm@mattt.me',
'Mattt' => 'mattt@me.com',
'Vincent Esche' => 'regexident@gmail.com'
}
s.source = { :git => 'https://github.com/jounce/Surge.git', :tag => s.version }
s.source = { git: 'https://github.com/jounce/Surge.git', tag: s.version }
s.ios.deployment_target = '8.0'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.9'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '3.0'
s.swift_version = '5.1'
s.source_files = 'Sources/Surge/**/*.swift'