From 139034e1d69c88e698a88fb03331c2ee4085fb43 Mon Sep 17 00:00:00 2001 From: Roberto Casula Date: Fri, 18 Mar 2022 09:45:52 +0100 Subject: [PATCH] Fix release script --- .github/workflows/create-release.yml | 4 ++-- .gitignore | 1 + Makefile | 9 +++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 31f37a4..9c3eb7b 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: xcode: - - '13.2.1' + - '13.3' steps: - uses: actions/checkout@v2 @@ -59,7 +59,7 @@ jobs: uses: actions/upload-release-asset@v1 with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./StargazersKit.xcframework.zip + asset_path: ./build/StargazersKit.xcframework.zip asset_name: StargazersKit.xcframework.zip asset_content_type: application/zip env: diff --git a/.gitignore b/.gitignore index 352d658..4cbcd0b 100644 --- a/.gitignore +++ b/.gitignore @@ -50,6 +50,7 @@ playground.xcworkspace # .swiftpm .build/ +.artifacts/ # CocoaPods # We recommend against adding the Pods directory to your .gitignore. However diff --git a/Makefile b/Makefile index cc8af9b..3fd3efc 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,8 @@ test: clean: rm -f StargazersKit-*.zip - rm -rf ./build + rm -rf ./build* + rm -rf ./artifacts* archive-ios-release: xcodebuild archive \ @@ -60,15 +61,15 @@ framework-release: xcodebuild -create-xcframework \ -framework './build/$(SCHEME)-Release.framework.xcarchive/Products/Library/Frameworks/$(SCHEME).framework' \ -framework './build/$(SCHEME)-Release.framework-iphonesimulator.xcarchive/Products/Library/Frameworks/$(SCHEME).framework' \ - -output './build/$(SCHEME)-Release.xcframework' + -output './artifacts/$(SCHEME).xcframework' framework-debug: xcodebuild -create-xcframework \ -framework './build/$(SCHEME)-Debug.framework.xcarchive/Products/Library/Frameworks/$(SCHEME).framework' \ -framework './build/$(SCHEME)-Debug.framework-iphonesimulator.xcarchive/Products/Library/Frameworks/$(SCHEME).framework' \ - -output './build/$(SCHEME)-Debug.xcframework' + -output './artifacts/$(SCHEME)-Debug.xcframework' zip: - zip -qq -r $(SCHEME).xcframework.zip ./build/$(SCHEME)-Relese.xcframework ./build/$(SCHEME)-Debug.xcframework + zip -qq -r $(SCHEME).xcframework.zip ./artifacts/$(SCHEME)*.xcframework format: swift format \