From 8cc1ae68111016f1ee83f241e2f6c87511ae912e Mon Sep 17 00:00:00 2001 From: Will Lumley Date: Thu, 20 Jan 2022 22:11:33 +1100 Subject: [PATCH] Updated README & added `DeployToCocoapods. --- .github/workflows/DeployToCocoapods.yml | 23 +++++++++++++++++++ .../FaviconFinder.xcodeproj/project.pbxproj | 12 +++++++++- README.md | 6 ++--- 3 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/DeployToCocoapods.yml diff --git a/.github/workflows/DeployToCocoapods.yml b/.github/workflows/DeployToCocoapods.yml new file mode 100644 index 0000000..f5efce0 --- /dev/null +++ b/.github/workflows/DeployToCocoapods.yml @@ -0,0 +1,23 @@ +name: Deploy to Cocoapods + +on: + push: + tags: + - '*' + +jobs: + build: + runs-on: macOS-latest + steps: + - uses: actions/checkout@v1 + + - name: Install Cocoapods + run: gem install cocoapods + + - name: Deploy to Cocoapods + run: | + set -eo pipefail + pod lib lint --allow-warnings + pod trunk push --allow-warnings + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} diff --git a/Example/FaviconFinder.xcodeproj/project.pbxproj b/Example/FaviconFinder.xcodeproj/project.pbxproj index aef454e..ed36551 100644 --- a/Example/FaviconFinder.xcodeproj/project.pbxproj +++ b/Example/FaviconFinder.xcodeproj/project.pbxproj @@ -49,6 +49,7 @@ 81EF860286A33245010DEEED /* Pods-FaviconFinder_iOS_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FaviconFinder_iOS_Example.debug.xcconfig"; path = "Target Support Files/Pods-FaviconFinder_iOS_Example/Pods-FaviconFinder_iOS_Example.debug.xcconfig"; sourceTree = ""; }; 9C5773D0659DE71F64359322 /* FaviconFinder.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = FaviconFinder.podspec; path = ../FaviconFinder.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; BE20446C27996CFD00D5D2EB /* BuildTests.yml */ = {isa = PBXFileReference; lastKnownFileType = text.yaml; name = BuildTests.yml; path = ../.github/workflows/BuildTests.yml; sourceTree = ""; }; + BE2044712799795400D5D2EB /* DeployToCocoapods.yml */ = {isa = PBXFileReference; lastKnownFileType = text.yaml; name = DeployToCocoapods.yml; path = ../.github/workflows/DeployToCocoapods.yml; sourceTree = ""; }; BE21380723F0D4FD00DCA2CB /* FaviconFinder_iOS_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FaviconFinder_iOS_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; BE21380923F0D4FD00DCA2CB /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; BE21380B23F0D4FD00DCA2CB /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; @@ -135,6 +136,15 @@ path = Pods; sourceTree = ""; }; + BE2044702799794400D5D2EB /* Workflows */ = { + isa = PBXGroup; + children = ( + BE20446C27996CFD00D5D2EB /* BuildTests.yml */, + BE2044712799795400D5D2EB /* DeployToCocoapods.yml */, + ); + name = Workflows; + sourceTree = ""; + }; BE21380823F0D4FD00DCA2CB /* FaviconFinder_iOS_Example */ = { isa = PBXGroup; children = ( @@ -202,7 +212,7 @@ ED83F69A20348B650038D96B /* Metadata */ = { isa = PBXGroup; children = ( - BE20446C27996CFD00D5D2EB /* BuildTests.yml */, + BE2044702799794400D5D2EB /* Workflows */, 9C5773D0659DE71F64359322 /* FaviconFinder.podspec */, BEDA437C23F226B80086C78A /* Cartfile */, BEDA437E23F226C20086C78A /* Package.swift */, diff --git a/README.md b/README.md index bfcf7ae..2aed47f 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ FaviconFinder is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile: ```ruby -pod 'FaviconFinder', '3.2.0' +pod 'FaviconFinder', '3.2.1' ``` ### Carthage @@ -120,7 +120,7 @@ FaviconFinder is also available through [Carthage](https://github.com/Carthage/C it, simply add the following line to your Cartfile: ```ruby -github "will-lumley/FaviconFinder" == 3.2.0 +github "will-lumley/FaviconFinder" == 3.2.1 ``` ### Swift Package Manager @@ -130,7 +130,7 @@ To install it, simply add the dependency to your Package.Swift file: ```swift ... dependencies: [ - .package(url: "https://github.com/will-lumley/FaviconFinder.git", from: "3.2.0"), + .package(url: "https://github.com/will-lumley/FaviconFinder.git", from: "3.2.1"), ], targets: [ .target( name: "YourTarget", dependencies: ["FaviconFinder"]),