Feature/appstore review #3481
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Android CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - release | |
| - develop | |
| tags: | |
| - '**' | |
| paths-ignore: | |
| - '**.md' | |
| - '**.yml' | |
| pull_request: | |
| branches: | |
| - master | |
| - release | |
| - develop | |
| jobs: | |
| build: | |
| runs-on: [ubuntu-latest] | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: yumis-coconudge/clean-workspace-action@v1 | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: true | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'microsoft' | |
| java-version: 21 | |
| - name: Setup Android SDK | |
| uses: android-actions/setup-android@v2 | |
| - name: Apply Signing | |
| env: | |
| ALIAS: ${{ secrets.ALIAS }} | |
| KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
| KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }} | |
| SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | |
| GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }} | |
| run: ./.github/apply_signing.sh | |
| # Run tests | |
| - name: Run Tests | |
| run: ./gradlew allTests | |
| # Build with Gradle | |
| - name: Build with Gradle | |
| env: | |
| BUILD_NUMBER: ${{github.run_number}} | |
| BUILD_VERSION: ${{github.ref_name}} | |
| run: ./gradlew :app:assembleRelease :app:bundleRelease :app:check :app:lint --stacktrace | |
| - name: Publish to Google Play | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: r0adkll/upload-google-play@v1 | |
| with: | |
| serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} | |
| packageName: dev.dimension.flare | |
| releaseFiles: app/build/outputs/bundle/release/app-release.aab | |
| track: internal | |
| mappingFile: app/build/outputs/mapping/release/mapping.txt | |