Skip to content

Commit f9838ee

Browse files
Always run deploy-*, and publish only on main
1 parent 63ea0ae commit f9838ee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
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"

0 commit comments

Comments
 (0)