File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 9898 deploy-ios :
9999 runs-on : macos-14
100100 needs : ["test-ios"]
101- if : ${{ github.ref == 'refs/heads/main ' }}
101+ if : ${{ github.repository == 'authgear/authgear-server ' }}
102102 defaults :
103103 run :
104104 working-directory : " ./example"
@@ -157,14 +157,15 @@ jobs:
157157 BUILD_NUMBER=$(date +%s)
158158 flutter build ipa --export-options-plist ./exportOptions.plist --build-number $BUILD_NUMBER
159159 - name : Distribute to App Center
160+ if : ${{ github.ref == 'refs/heads/main' }}
160161 env :
161162 APPCENTER_ACCESS_TOKEN : ${{ secrets.IOS_APPCENTER_ACCESS_TOKEN }}
162163 run : appcenter distribute release --debug --silent --file "./build/ios/ipa/Authgear Flutter.ipa" --store "App Store Connect Users" --app "Oursky/Authgear-Demo-Flutter-iOS" --release-notes "no release notes"
163164
164165 deploy-android :
165166 runs-on : macos-14
166167 needs : ["test-android"]
167- if : ${{ github.ref == 'refs/heads/main ' }}
168+ if : ${{ github.repository == 'authgear/authgear-server ' }}
168169 defaults :
169170 run :
170171 working-directory : " ./example"
@@ -205,6 +206,7 @@ jobs:
205206 BUILD_NUMBER=$(date +%s)
206207 flutter build apk --build-number $BUILD_NUMBER -P STORE_PASSWORD="$STORE_PASSWORD" -P KEY_PASSWORD="$KEY_PASSWORD" -P KEY_ALIAS="$KEY_ALIAS"
207208 - name : Distribute to App Center
209+ if : ${{ github.ref == 'refs/heads/main' }}
208210 env :
209211 APPCENTER_ACCESS_TOKEN : ${{ secrets.ANDROID_APPCENTER_ACCESS_TOKEN }}
210212 run : appcenter distribute release --debug --silent --file "./build/app/outputs/flutter-apk/app-release.apk" --group "Collaborators" --app "Oursky/Authgear-Demo-Flutter-Android"
You can’t perform that action at this time.
0 commit comments