Automated CocoaPods release (#1991)
This commit is contained in:
13
.github/workflows/ios-ci.yml
vendored
13
.github/workflows/ios-ci.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user