-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
set -ex | ||
|
||
gradle assembleSkipRevenuecatXCFramework | ||
|
||
cd skip-revenuecat/build/XCFrameworks/release/ | ||
|
||
rm -f SkipRevenuecat.xcframework.zip | ||
zip -qr SkipRevenuecat.xcframework.zip SkipRevenuecat.xcframework | ||
ls -lah SkipRevenuecat.xcframework.zip | ||
shasum -a 256 SkipRevenuecat.xcframework.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
git pull | ||
|
||
./scripts/build.sh | ||
|
||
LATEST_VERSION=$(git tag -l --sort=-version:refname | grep '[0-9]*\.[0-9]*\.[0-9]*' | head -n 1) | ||
if [ -z "${LATEST_VERSION}" ]; then LATEST_VERSION="0.0.0"; fi | ||
|
||
NEW_VERSION=$(semver bump ${SEMVER_BUMP:-patch} ${LATEST_VERSION}) | ||
|
||
ARTIFACT="skip-revenuecat/build/XCFrameworks/release/SkipRevenuecat.xcframework.zip" | ||
|
||
gh release create --notes "$(cat ${ARTIFACT} | shasum -a 256)" ${NEW_VERSION} ${ARTIFACT} | ||
|