notify slack on production builds (#3460)
This commit is contained in:
		
							parent
							
								
									ee87f2cadd
								
							
						
					
					
						commit
						26f5e02afa
					
				
					 1 changed files with 28 additions and 11 deletions
				
			
		
							
								
								
									
										39
									
								
								.github/workflows/build-submit-android.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										39
									
								
								.github/workflows/build-submit-android.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -62,38 +62,55 @@ jobs: | |||
|       - name: 🏗️ EAS Build | ||||
|         run: yarn use-build-number-with-bump eas build -p android --profile ${{ inputs.profile || 'testflight-android' }} --local --output build.aab --non-interactive | ||||
| 
 | ||||
|       - name: 🚀 Deploy | ||||
|         if: ${{ inputs.profile == 'production' }} | ||||
|         run: eas submit -p android --non-interactive --path build.aab | ||||
| 
 | ||||
|       - name: ✍️ Rename bundle | ||||
|       - name: ✍️ Rename Testflight bundle | ||||
|         if: ${{ inputs.profile != 'production' }} | ||||
|         run: mv build.aab build.apk | ||||
| 
 | ||||
|       - name: ⏰ Get a timestamp | ||||
|         id: timestamp | ||||
|         if: ${{ inputs.profile != 'production' }} | ||||
|         uses: nanzm/get-time-action@master | ||||
|         with: | ||||
|           format: 'MM-DD-HH-mm-ss' | ||||
| 
 | ||||
|       - name: 🚀 Upload Artifact | ||||
|         id: upload-artifact | ||||
|       - name: 🚀 Upload Production Artifact | ||||
|         id: upload-artifact-production | ||||
|         if: ${{ inputs.profile == 'production' }} | ||||
|         uses: actions/upload-artifact@v4 | ||||
|         with: | ||||
|           retention-days: 30 | ||||
|           compression-level: 6 | ||||
|           name: build-${{ steps.timestamp.outputs.time }}.aab | ||||
|           path: build.apk | ||||
| 
 | ||||
|       - name: 🚀 Upload Testflight Artifact | ||||
|         id: upload-artifact-testflight | ||||
|         if: ${{ inputs.profile != 'production' }} | ||||
|         uses: actions/upload-artifact@v4 | ||||
|         with: | ||||
|           retention-days: 30 | ||||
|           compression-level: 0 | ||||
|           compression-level: 6 | ||||
|           name: build-${{ steps.timestamp.outputs.time }}.apk | ||||
|           path: build.apk | ||||
| 
 | ||||
|       - name: 🔔 Notify Slack | ||||
|       - name: 🔔 Notify Slack of Production Build | ||||
|         if: ${{ inputs.profile == 'production' }} | ||||
|         uses: slackapi/slack-github-action@v1.25.0 | ||||
|         with: | ||||
|           payload: | | ||||
|             { | ||||
|               "text": "Android build is ready for submission. This is a production build! Download the artifact here: ${{ steps.upload-artifact-production.outputs.artifact-url }}" | ||||
|             } | ||||
|         env: | ||||
|           SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }} | ||||
|           SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | ||||
| 
 | ||||
|       - name: 🔔 Notify Slack of Testflight Build | ||||
|         if: ${{ inputs.profile != 'production' }} | ||||
|         uses: slackapi/slack-github-action@v1.25.0 | ||||
|         with: | ||||
|           payload: | | ||||
|             { | ||||
|               "text": "Android build is ready for testing. Download the artifact here: ${{ steps.upload-artifact.outputs.artifact-url }}" | ||||
|               "text": "Android build is ready for testing. Download the artifact here: ${{ steps.upload-artifact-testflight.outputs.artifact-url }}" | ||||
|             } | ||||
|         env: | ||||
|           SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue