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
script: |
jazzy \
--min-acl internal \
--no-hide-documentation-coverage \
--theme fullwidth \
--output output \
--readme README.md \
--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:
provider: pages
skip-cleanup: true
@@ -64,3 +65,8 @@ jobs:
local-dir: output
on:
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|
s.name = 'Path.swift'
s.version = '0.3.0'
s.version = '0.4.0'
s.summary = 'Delightful, robust file-pathing functions'
s.homepage = 'https://github.com/mxcl/Path.swift'
s.license = { :type => 'Unlicense', :file => 'LICENSE.md' }

View File

@@ -183,13 +183,13 @@ Path("~foo") // => nil
SwiftPM:
```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:
```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