-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (46 loc) · 2.11 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Release TestFairy Unity SDK
on:
push:
tags:
- '*.*.*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '15.12.0'
- name: Install Dependencies
run: |
npm -g i testfairy-unity-asset-packager
npm install
- name: Update native SDK versions
run: |
ANDROID_SDK_VERSION=1.12.29
IOS_VERSION=1.30.3
mkdir -p Files/Android/
mkdir -p Files/iOS/
curl -s -L https://maven.testfairy.com/com/testfairy/testfairy-android-sdk/${ANDROID_SDK_VERSION}/testfairy-android-sdk-${ANDROID_SDK_VERSION}.aar -o Files/Android/testfairy-android-sdk.aar
curl -s -L https://s3.amazonaws.com/testfairy/sdk/TestFairySDK-${IOS_VERSION}.zip -o Files/iOS/TestFairySDK.zip
curl -s -L https://s3.amazonaws.com/testfairy/sdk/TestFairySDK-${IOS_VERSION}.xcframework.zip -o Files/iOS/TestFairySDK.xcframework.zip
unzip -o -d Files/iOS/ Files/iOS/TestFairySDK.zip
unzip -o -d Files/iOS/ Files/iOS/TestFairySDK.xcframework.zip
rm -f Files/iOS/TestFairySDK.zip
rm -f Files/iOS/TestFairySDK.xcframework.zip
node build.js static
zip -rp9 "TestFairySDK-Unity.zip" Plugins
testfairy-unity-asset-packager --debug --prepend 'Assets/Plugins' --output TestFairySDK-Unity.unitypackage --overwrite Plugins
sed -i "s/#import \"TestFairy.h\"/#import <TestFairy\/TestFairy.h>/g" Files/iOS/TestFairyUnityWrapper.m
node build.js xcframework
zip -rp9 "TestFairySDK-Unity2021.zip" Plugins
testfairy-unity-asset-packager --debug --prepend 'Assets/Plugins' --output TestFairySDK-Unity2021.unitypackage --overwrite Plugins
- name: Add Artifacts to Github Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
TestFairySDK-Unity.zip
TestFairySDK-Unity.unitypackage
TestFairySDK-Unity2021.zip
TestFairySDK-Unity2021.unitypackage