Skip to content

Commit b20fc4e

Browse files
authored
Do not build apps in PRs #80
#80
2 parents 1916933 + afe49d4 commit b20fc4e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,19 +101,22 @@ jobs:
101101
- run: make example-flutter-test
102102
- run: make example-flutter-analyze
103103
- run: make example-dart-format
104+
- run: make example-pod-install
104105
- uses: authgear/gh-actions-install-apple-certificate-and-provisioning-profile@v1
106+
if: ${{ github.ref == 'refs/heads/main' }}
105107
with:
106108
certificate_base64: ${{ secrets.IOS_CERTIFICATE_BASE64 }}
107109
certificate_password: ${{ secrets.IOS_CERTIFICATE_PASSWORD }}
108110
provisioning_profile_base64: ${{ secrets.IOS_PROVISIONING_PROFILE_BASE64 }}
109111
- uses: authgear/gh-actions-create-fastlane-api-key-json-file@v1
112+
if: ${{ github.ref == 'refs/heads/main' }}
110113
with:
111114
api_key_id: ${{ secrets.IOS_API_KEY_ID }}
112115
api_key_issuer: ${{ secrets.IOS_API_KEY_ISSUER }}
113116
api_key_base64: ${{ secrets.IOS_API_KEY_BASE64 }}
114117
output_path: ./build/fastlane-api-key.json
115-
- run: make example-pod-install
116118
- run: make example-build-ios-app
119+
if: ${{ github.ref == 'refs/heads/main' }}
117120
- name: Upload to TestFlight
118121
if: ${{ github.ref == 'refs/heads/main' }}
119122
run: make example-upload-ios-app
@@ -139,6 +142,7 @@ jobs:
139142
- run: make example-flutter-analyze
140143
- run: make example-dart-format
141144
- name: Build aab
145+
if: ${{ github.ref == 'refs/heads/main' }}
142146
env:
143147
STORE_BASE64: ${{ secrets.ANDROID_KEY_STORE_BASE64 }}
144148
STORE_PASSWORD: ${{ secrets.ANDROID_KEY_STORE_PASSWORD }}

0 commit comments

Comments
 (0)