|
1 | | -name: React Native Release |
| 1 | +name: Deploy |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
|
7 | 7 | branches: |
8 | 8 | - automated-deployment |
9 | 9 |
|
| 10 | +concurrency: |
| 11 | + group: release |
| 12 | + cancel-in-progress: true |
| 13 | + |
10 | 14 | jobs: |
11 | 15 | deploy_imessageclone_ios: |
12 | | - name: Deploy iMessage clone iOS to Firebase App Distribution |
| 16 | + name: Deploy iMessage clone iOS to Testflight |
13 | 17 | runs-on: macos-latest |
14 | 18 | steps: |
15 | 19 | - uses: actions/checkout@master |
@@ -49,12 +53,15 @@ jobs: |
49 | 53 | MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} |
50 | 54 | MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }} |
51 | 55 | FIREBASE_TOKEN: ${{ secrets.FIREBASE_APP_DISTRIBUTION_TOKEN }} |
| 56 | + APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }} |
| 57 | + APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }} |
| 58 | + APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }} |
52 | 59 | run: | |
53 | 60 | cd projects/iMessageClone; |
54 | | - bundle exec fastlane ios deploy_to_firebase branch:${{ github.head_ref || github.ref_name }}; |
| 61 | + bundle exec fastlane ios deploy_to_testflight branch:${{ github.head_ref || github.ref_name }}; |
55 | 62 |
|
56 | 63 | deploy_slackclone_ios: |
57 | | - name: Deploy Slack clone iOS to Firebase App Distribution |
| 64 | + name: Deploy Slack clone iOS to Testflight |
58 | 65 | runs-on: macos-latest |
59 | 66 | steps: |
60 | 67 | - uses: actions/checkout@master |
@@ -94,12 +101,15 @@ jobs: |
94 | 101 | MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} |
95 | 102 | MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }} |
96 | 103 | FIREBASE_TOKEN: ${{ secrets.FIREBASE_APP_DISTRIBUTION_TOKEN }} |
| 104 | + APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }} |
| 105 | + APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }} |
| 106 | + APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }} |
97 | 107 | run: | |
98 | 108 | cd projects/SlackClone; |
99 | | - bundle exec fastlane ios deploy_to_firebase branch:${{ github.head_ref || github.ref_name }}; |
| 109 | + bundle exec fastlane ios deploy_to_testflight branch:${{ github.head_ref || github.ref_name }}; |
100 | 110 |
|
101 | 111 | deploy_whatsappclone_ios: |
102 | | - name: Deploy Whatsapp clone iOS to Firebase App Distribution |
| 112 | + name: Deploy Whatsapp clone iOS to Testflight |
103 | 113 | runs-on: macos-latest |
104 | 114 | steps: |
105 | 115 | - uses: actions/checkout@master |
@@ -139,9 +149,12 @@ jobs: |
139 | 149 | MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} |
140 | 150 | MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }} |
141 | 151 | FIREBASE_TOKEN: ${{ secrets.FIREBASE_APP_DISTRIBUTION_TOKEN }} |
| 152 | + APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }} |
| 153 | + APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }} |
| 154 | + APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }} |
142 | 155 | run: | |
143 | 156 | cd projects/WhatsAppClone; |
144 | | - bundle exec fastlane ios deploy_to_firebase branch:${{ github.head_ref || github.ref_name }}; |
| 157 | + bundle exec fastlane ios deploy_to_testflight branch:${{ github.head_ref || github.ref_name }}; |
145 | 158 |
|
146 | 159 | deploy_imessageclone_android: |
147 | 160 | name: Deploy iMessage clone Android to Firebase App Distribution |
@@ -268,57 +281,3 @@ jobs: |
268 | 281 | run: | |
269 | 282 | cd projects/WhatsAppClone; |
270 | 283 | bundle exec fastlane android deploy_to_firebase branch:${{ github.head_ref || github.ref_name }}; |
271 | | -
|
272 | | - push_version_changes: |
273 | | - name: Push version code updates |
274 | | - runs-on: macos-latest |
275 | | - needs: |
276 | | - [ |
277 | | - deploy_imessageclone_ios, |
278 | | - deploy_slackclone_ios, |
279 | | - deploy_whatsappclone_ios, |
280 | | - deploy_imessageclone_android, |
281 | | - deploy_slackclone_android, |
282 | | - deploy_whatsappclone_android, |
283 | | - ] |
284 | | - steps: |
285 | | - - uses: actions/checkout@master |
286 | | - with: |
287 | | - persist-credentials: false |
288 | | - fetch-depth: 0 |
289 | | - - name: Install Ruby and Gems for iMessageClone |
290 | | - uses: ruby/setup-ruby@v1 |
291 | | - with: |
292 | | - working-directory: projects/iMessageClone |
293 | | - bundler-cache: true |
294 | | - - name: Build and deploy iMessageClone |
295 | | - run: | |
296 | | - cd projects/iMessageClone; |
297 | | - bundle exec fastlane run increment_build_number xcodeproj:"./ios/iMessageCloneReactNative.xcodeproj"; |
298 | | - bundle exec fastlane run increment_version_code gradle_file_path:"./android/app/build.gradle"; |
299 | | - - name: Install Ruby and Gems for Slack Clone |
300 | | - uses: ruby/setup-ruby@v1 |
301 | | - with: |
302 | | - working-directory: projects/SlackClone |
303 | | - bundler-cache: true |
304 | | - - name: Build and deploy SlackClone |
305 | | - run: | |
306 | | - cd projects/WhatsAppClone; |
307 | | - bundle exec fastlane run increment_build_number xcodeproj:"./ios/SlackCloneReactNative.xcodeproj"; |
308 | | - bundle exec fastlane run increment_version_code gradle_file_path:"./android/app/build.gradle"; |
309 | | - - name: Install Ruby and Gems for Slack Clone |
310 | | - uses: ruby/setup-ruby@v1 |
311 | | - with: |
312 | | - working-directory: projects/WhatsAppClone |
313 | | - bundler-cache: true |
314 | | - - name: Build and deploy WhatsAppClone |
315 | | - run: | |
316 | | - cd projects/WhatsAppClone; |
317 | | - bundle exec fastlane run increment_build_number xcodeproj:"./ios/WhatsAppCloneReactNative.xcodeproj"; |
318 | | - bundle exec fastlane run increment_version_code gradle_file_path:"./android/app/build.gradle"; |
319 | | - - name: Commit & Push changes |
320 | | - uses: actions-js/push@master |
321 | | - with: |
322 | | - message: "chore: bump iOS and Android version [skip ci]" |
323 | | - github_token: ${{ secrets.GITHUB_TOKEN }} |
324 | | - branch: ${{ github.head_ref || github.ref_name }} |
0 commit comments