more automation
This commit is contained in:
		
							
								
								
									
										39
									
								
								frontend/.github/workflows/build_app_android.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								frontend/.github/workflows/build_app_android.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,39 @@
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - main
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  build:
 | 
			
		||||
    runs-on: macos-lastest
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v2
 | 
			
		||||
  
 | 
			
		||||
      - name: Set up ruby env
 | 
			
		||||
        uses: ruby/setup-ruby@v1.138.0
 | 
			
		||||
        with:
 | 
			
		||||
          ruby-version: 3.2.1
 | 
			
		||||
          bundler-cache: true
 | 
			
		||||
      
 | 
			
		||||
      - name: Setup java for android build
 | 
			
		||||
        uses: actions/setup-java@v4
 | 
			
		||||
        with:
 | 
			
		||||
          java-version: '17'
 | 
			
		||||
          distribution: 'zulu'
 | 
			
		||||
      
 | 
			
		||||
      - name: Setup android SDK
 | 
			
		||||
        uses: https://github.com/android-actions/setup-android@v3
 | 
			
		||||
 | 
			
		||||
      - name: Infer version number from git tag
 | 
			
		||||
        id: version
 | 
			
		||||
        env: 
 | 
			
		||||
          REF_NAME: ${{ github.ref_name }}
 | 
			
		||||
        run:
 | 
			
		||||
          # remove the 'v' prefix from the tag name
 | 
			
		||||
          echo "VERSION=${REF_NAME//v}" >> $GITHUB_ENV
 | 
			
		||||
 | 
			
		||||
      - name: Run fastlane lane
 | 
			
		||||
        run: bundle exec fastlane android build
 | 
			
		||||
        working-directory: android
 | 
			
		||||
        env:
 | 
			
		||||
          VERSION_NAME: ${{outputs.version.VERSION}}
 | 
			
		||||
		Reference in New Issue
	
	Block a user