-
Notifications
You must be signed in to change notification settings - Fork 16
76 lines (69 loc) · 2.79 KB
/
opensource.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: iOS CI
on:
push:
paths-ignore: # 有時候不想要改個文档也触发 github actions
- 'doc/**'
- '**.md'
- 'LICENSE'
- 'TIoTLinkKit.podspec'
tags-ignore: # 屏蔽掉发release打tag事件
- '*'
branches:
- '*'
jobs:
Build:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: pod cache
uses: actions/cache@v3
with:
path: Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Install GPG
run: brew install gnupg
- name: install fir
run: gem install fir-cli
- name: List available Xcode versions
run: ls /Applications | grep Xcode
- name: Decrypt large secret
run: sh .github/script/import_provisioning.sh Debug
env:
PROVISIONING_PASSWORD: ${{ secrets.GPG_DECRYPT_PASSPHRASE }}
P12_EXPORT_CCHARLESREN_PASSWORD: ${{ secrets.IOT_P12_EXPORT_PASSWORD }}
- name: Build archive
run: |
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
export GIT_BRANCH_IMAGE_VERSION=$VERSION
sh .github/script/archive.sh Debug
sh .github/script/sdkDemoArchive.sh Debug
ls -l
- name: Deploy App to fir
run: |
rc=$(git rev-parse --short HEAD)
rl=$(git log --pretty=format:"%s" $rc -1)
fir publish LinkApp.ipa -T $RELEASE_PGYER_API_KEY -c "$rl" --oversea_turbo --force_pin_history -V
fir publish LinkSDKDemo.ipa -T $RELEASE_PGYER_API_KEY -c "$rl" --oversea_turbo --force_pin_history -V
env:
RELEASE_PGYER_API_KEY: ${{ secrets.IOT_FIRIM_API_TOKEN }}
- name: upload dSYM
run: |
GIT_BRANCH_VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
rb=$GIT_BRANCH_VERSION
rc=$(git rev-parse --short HEAD)
git clone https://github.com/tencentyun/iot-link-ios.wiki.git
cd iot-link-ios.wiki/uploadDSYM
mv ../../LinkApp.xcarchive/dSYMs/LinkApp.app.dSYM ./
VERSION=$rb+git.$rc
echo $rb
echo $rc
echo $VERSION
java -jar buglyqq-upload-symbol.jar $BUGLY_UPLOAD_SYMBOL_ARGS_OSS -bundleid com.tencent.iot.explorer.link.opensource -version $VERSION -platform IOS -inputSymbol LinkApp.app.dSYM
env:
BUGLY_UPLOAD_SYMBOL_ARGS_OSS: ${{ secrets.BUGLY_UPLOAD_SYMBOL_ARGS_OSS }}
# - name: upload dSYM
# run: |
# ./Pods/FirebaseCrashlytics/upload-symbols -gsp ./Source/LinkApp/Supporting\ Files/GoogleService-Info.plist -p ios ./LinkApp.xcarchive/dSYMs/LinkApp.app.dSYM
# ./Pods/FirebaseCrashlytics/upload-symbols -gsp ./Source/LinkSDKDemo/Supporting\ Files/GoogleService-Info.plist -p ios ./LinkSDKDemo.xcarchive/dSYMs/LinkSDKDemo.app.dSYM