Deploy to CocoaPods

This commit is contained in:
Max Howell
2019-01-20 18:13:11 +00:00
parent 152ad8a8ae
commit 86798755be
3 changed files with 11 additions and 5 deletions

View File

@@ -50,13 +50,14 @@ jobs:
install: gem install jazzy install: gem install jazzy
script: | script: |
jazzy \ jazzy \
--min-acl internal \
--no-hide-documentation-coverage \ --no-hide-documentation-coverage \
--theme fullwidth \ --theme fullwidth \
--output output \ --output output \
--readme README.md \ --readme README.md \
--root-url https://mxcl.github.io/Path.swift/ \ --root-url https://mxcl.github.io/Path.swift/ \
--github_url https://github.com/mxcl/Path.swift --github_url https://github.com/mxcl/Path.swift \
--module Path \
--module-version $TRAVIS_TAG
deploy: deploy:
provider: pages provider: pages
skip-cleanup: true skip-cleanup: true
@@ -64,3 +65,8 @@ jobs:
local-dir: output local-dir: output
on: on:
tags: true tags: true
- stage: deploy
name: CocoaPods
install: gem install cocoapods --pre
script: pod trunk push --allow-warnings

View File

@@ -1,6 +1,6 @@
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'Path.swift' s.name = 'Path.swift'
s.version = '0.3.0' s.version = '0.4.0'
s.summary = 'Delightful, robust file-pathing functions' s.summary = 'Delightful, robust file-pathing functions'
s.homepage = 'https://github.com/mxcl/Path.swift' s.homepage = 'https://github.com/mxcl/Path.swift'
s.license = { :type => 'Unlicense', :file => 'LICENSE.md' } s.license = { :type => 'Unlicense', :file => 'LICENSE.md' }

View File

@@ -183,13 +183,13 @@ Path("~foo") // => nil
SwiftPM: SwiftPM:
```swift ```swift
package.append(.package(url: "https://github.com/mxcl/Path.swift", from: "0.3.0")) package.append(.package(url: "https://github.com/mxcl/Path.swift", from: "0.4.0"))
``` ```
CocoaPods: CocoaPods:
```ruby ```ruby
pod 'Path.swift' ~> 0.3.0 pod 'Path.swift' ~> 0.4.0
``` ```
Please note! We are pre 1.0, thus we can change the API as we like! We will tag Please note! We are pre 1.0, thus we can change the API as we like! We will tag