Skip to content

Commit

Permalink
Automated CocoaPods release (#1991)
Browse files Browse the repository at this point in the history
  • Loading branch information
louwers authored Jan 4, 2024
1 parent f1098b2 commit 39bcb21
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ios-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,23 @@ jobs:
git tag -a ios-v${{ env.version }} -m "Publish ios-v${{ env.version }}" ${{ github.sha }}
git push origin ios-v${{ env.version }}
- name: Release
- name: Release (GitHub)
if: env.make_release
id: release
uses: softprops/action-gh-release@v1
with:
name: ios-v${{ env.version }}
files: ${{ env.xcframework }}
files: |
${{ env.xcframework }}
LICENSE.md
tag_name: ios-v${{ env.version }}
prerelease: ${{ !github.event.inputs.release }}
fail_on_unmatched_files: true

- name: Release (CocoaPods)
if: env.make_release
run: |
VERSION=${{ env.version }} COCOAPODS_TRUNK_TOKEN=${{ secrets.COCOAPODS_PASSWORD }} pod trunk push MapLibre.podspec
ios-ci-result:
runs-on: ubuntu-latest
Expand Down
13 changes: 7 additions & 6 deletions platform/ios/MapLibre.podspec
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
Pod::Spec.new do |s|
version = '6.0.0-pre0'
version = "#{ENV['VERSION']}"

s.name = 'MapLibre'
s.version = version
s.license = { :type => 'BSD', :text => '' }
s.license = { :type => 'BSD', :file => "LICENSE.md" }
s.homepage = 'https://maplibre.org/'
s.authors = { 'MapLibre' => '' }
s.summary = 'Open source vector map solution for iOS with full styling capabilities.'
s.platform = :ios
s.source = {
:http => "https://github.com/maplibre/maplibre-native/releases/download/ios-v#{version.to_s}/MapLibre-#{version.to_s}.zip",
:flatten => false
:http => "https://github.com/maplibre/maplibre-native/releases/download/ios-v#{version.to_s}/MapLibre.dynamic.xcframework.zip",
:type => "zip"
}
s.social_media_url = 'https://mastodon.social/@maplibre'
s.ios.deployment_target = '11.0'
s.ios.vendored_frameworks = "**/MapLibre.xcframework"
s.ios.deployment_target = '12.0'
s.ios.vendored_frameworks = "MapLibre.xcframework"
end

0 comments on commit 39bcb21

Please sign in to comment.