@@ -118,42 +118,48 @@ jobs:
118
118
} >> "$envFile"
119
119
fi
120
120
121
- - name : Build Android app
121
+ - name : Build Android app (retryable)
122
+ uses : nick-fields/retry@v3
122
123
id : build
123
- run : |
124
- lane=''
125
- case '${{ inputs.type }}' in
126
- 'release')
127
- lane='build';;
128
- 'adhoc')
129
- lane='build_adhoc';;
130
- 'e2e')
131
- lane='build_e2e';;
132
- 'e2eDelta')
133
- lane='build_e2eDelta';;
134
- esac
135
- bundle exec fastlane android "$lane"
136
-
137
- # Refresh environment variables from GITHUB_ENV that are updated when running fastlane
138
- # shellcheck disable=SC1090
139
- source "$GITHUB_ENV"
140
-
141
- SHOULD_UPLOAD_SOURCEMAPS='false'
142
- if [ -f ./android/app/build/generated/sourcemaps/react/productionRelease/index.android.bundle.map ]; then
143
- SHOULD_UPLOAD_SOURCEMAPS='true'
144
- fi
145
-
146
- {
147
- # aabPath and apkPath are environment varibles set within the Fastfile
148
- echo "AAB_PATH=$aabPath"
149
- echo "AAB_FILE_NAME=$(basename "$aabPath")"
150
- echo "APK_PATH=$apkPath"
151
- echo "APK_FILE_NAME=$(basename "$apkPath")"
152
- echo "SHOULD_UPLOAD_SOURCEMAPS=$SHOULD_UPLOAD_SOURCEMAPS"
153
- } >> "$GITHUB_OUTPUT"
154
124
env :
155
125
MYAPP_UPLOAD_STORE_PASSWORD : ${{ secrets.MYAPP_UPLOAD_STORE_PASSWORD }}
156
126
MYAPP_UPLOAD_KEY_PASSWORD : ${{ secrets.MYAPP_UPLOAD_KEY_PASSWORD }}
127
+ with :
128
+ retry_on : error
129
+ retry_wait_seconds : 60
130
+ timeout_minutes : 60
131
+ max_attempts : 3
132
+ command : |
133
+ lane=''
134
+ case '${{ inputs.type }}' in
135
+ 'release')
136
+ lane='build';;
137
+ 'adhoc')
138
+ lane='build_adhoc';;
139
+ 'e2e')
140
+ lane='build_e2e';;
141
+ 'e2eDelta')
142
+ lane='build_e2eDelta';;
143
+ esac
144
+ bundle exec fastlane android "$lane"
145
+
146
+ # Refresh environment variables from GITHUB_ENV that are updated when running fastlane
147
+ # shellcheck disable=SC1090
148
+ source "$GITHUB_ENV"
149
+
150
+ SHOULD_UPLOAD_SOURCEMAPS='false'
151
+ if [ -f ./android/app/build/generated/sourcemaps/react/productionRelease/index.android.bundle.map ]; then
152
+ SHOULD_UPLOAD_SOURCEMAPS='true'
153
+ fi
154
+
155
+ {
156
+ # aabPath and apkPath are environment varibles set within the Fastfile
157
+ echo "AAB_PATH=$aabPath"
158
+ echo "AAB_FILE_NAME=$(basename "$aabPath")"
159
+ echo "APK_PATH=$apkPath"
160
+ echo "APK_FILE_NAME=$(basename "$apkPath")"
161
+ echo "SHOULD_UPLOAD_SOURCEMAPS=$SHOULD_UPLOAD_SOURCEMAPS"
162
+ } >> "$GITHUB_OUTPUT"
157
163
158
164
- name : Upload Android AAB artifact
159
165
if : ${{ steps.build.outputs.AAB_PATH != '' }}
0 commit comments