Skip to content

Commit

Permalink
fix pod spec
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasromanomr committed Nov 29, 2024
1 parent e20e4a4 commit 49d06ad
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,16 @@ jobs:
-framework build/appletvsimulator-build/SkeletonView.xcarchive/Products/Library/Frameworks/SkeletonView.framework \
-output build/XCFramework/SkeletonView.xcframework
- name: Upload XCFramework
- name: Compress XCFramework
run: |
cd build/XCFramework
zip -r SkeletonView.xcframework.zip SkeletonView.xcframework
- name: Upload XCFramework to Release
uses: actions/upload-artifact@v3
with:
name: SkeletonView-XCFramework
path: build/XCFramework/SkeletonView.xcframework
name: SkeletonView-XCFramework-Zip
path: build/XCFramework/SkeletonView.xcframework.zip

release_version:
name: Release Version
Expand All @@ -97,10 +102,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Download XCFramework
- name: Download XCFramework ZIP
uses: actions/download-artifact@v3
with:
name: SkeletonView-XCFramework
name: SkeletonView-XCFramework-Zip

- name: Publish release
id: publish_release
Expand All @@ -110,9 +115,18 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload XCFramework to GitHub Release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: build/XCFramework/SkeletonView.xcframework.zip
asset_name: SkeletonView.xcframework.zip
asset_content_type: application/zip

- name: Update podspec with XCFramework
run: |
sed -i '' 's|vendored_frameworks = .*|vendored_frameworks = "build/XCFramework/SkeletonView.xcframework"|' SkeletonView.podspec
sed -i '' 's|source = .*|{ :http => "https://github.com/Juanpe/SkeletonView/releases/download/${{ steps.publish_release.outputs.tag_name }}/SkeletonView.xcframework.zip" }|' SkeletonView.podspec
- name: Update version in podspec
run: fastlane bump_version next_version:${{ steps.publish_release.outputs.tag_name }}
Expand Down
4 changes: 2 additions & 2 deletions SkeletonView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Pod::Spec.new do |s|
s.social_media_url = "https://x.com/JuanpeCatalan"
s.ios.deployment_target = "12.0"
s.tvos.deployment_target = "12.0"
s.swift_version = "5.10"
s.swift_version = "5.0"
s.source = { :git => "https://github.com/Juanpe/SkeletonView.git", :tag => s.version.to_s }
s.source_files = "SkeletonViewCore/Sources/**/*.{swift,h}"
s.resource_bundles = {"SkeletonView" => ["SkeletonViewCore/Sources/Supporting Files/PrivacyInfo.xcprivacy"]}
s.vendored_frameworks = "SkeletonView.xcframework"
end

0 comments on commit 49d06ad

Please sign in to comment.