@@ -70,14 +70,14 @@ jobs:
7070
7171
7272# ############ Video ##################
73- - name : Decrypt Video prerelease keychain
73+ - name : video Decrypt prerelease keychain
7474 if : ${{contains(env.curr_tag, 'video')}}
7575 run : sh .github/script/import_provisioning.sh Debug
7676 env :
7777 PROVISIONING_PASSWORD : ${{ secrets.GPG_DECRYPT_PASSPHRASE }}
7878 P12_EXPORT_CCHARLESREN_PASSWORD : ${{ secrets.IOT_P12_EXPORT_PASSWORD }}
7979
80- - name : Build Video Archive
80+ - name : video Build Archive
8181 if : ${{contains(env.curr_tag, 'video')}}
8282 run : |
8383 VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
9393 env :
9494 PROVISIONING_PASSWORD : ${{ secrets.GPG_DECRYPT_PASSPHRASE }}
9595
96- - name : Upload LinkApp Asset
96+ - name : video Upload Asset
9797 if : ${{contains(env.curr_tag, 'video')}}
9898 uses : actions/upload-release-asset@v1
9999 with :
@@ -104,11 +104,21 @@ jobs:
104104 env :
105105 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
106106
107- - name : Deploy App to PGY
107+ - name : video install fir
108+ if : ${{contains(env.curr_tag, 'video')}}
109+ run : gem install fir-cli
110+
111+ - name : video deploy to fir
108112 if : ${{contains(env.curr_tag, 'video')}}
109- run : curl -F 'file=@./LinkSDKDemo.ipa' -F '_api_key=${{ secrets.RELEASE_PGYER_API_KEY }}' https://www.pgyer.com/apiv2/app/upload
113+ run : |
114+ rc=$(git rev-parse --short HEAD)
115+ rl=$(git log --pretty=format:"%s" $rc -1)
110116
111- - name : upload dSYM
117+ fir publish LinkSDKDemo.ipa -T $RELEASE_PGYER_API_KEY -c "$rl" --oversea_turbo --force_pin_history -V
118+ env :
119+ RELEASE_PGYER_API_KEY : ${{ secrets.IOT_FIRIM_API_TOKEN }}
120+
121+ - name : video upload dSYM
112122 if : ${{contains(env.curr_tag, 'video')}}
113123 run : |
114124 ./Pods/FirebaseCrashlytics/upload-symbols -gsp ./Source/LinkSDKDemo/Supporting\ Files/GoogleService-Info.plist -p ios ./LinkSDKDemo.xcarchive/dSYMs/LinkSDKDemo.app.dSYM
0 commit comments