Update android-branch_ci.yml #2433
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
| # Builds the project | |
| name: Android Feature Branch CI | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| - '*/**' | |
| - '!*main' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build, Sign & Upload | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@v6.0.1 | |
| with: | |
| token: ${{ github.actor == 'dependabot[bot]' && secrets.GITHUB_TOKEN || secrets.GIT_BOT_TOKEN }} | |
| ref: main | |
| - name: set up JDK 17 | |
| uses: actions/setup-java@v5.1.0 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Stop Gradle daemons | |
| run: ./gradlew --stop | |
| - name: Decode keystore | |
| id: write_base64_file | |
| uses: Swisyn/Base64-hash-to-file@v1.0 | |
| with: | |
| destinationFileName: 'mLauncher.jks' | |
| destinationPath: 'app' | |
| encodedString: ${{ secrets.SIGNINGKEY_BASE64 }} | |
| - name: Build with Gradle | |
| run: ./gradlew clean assembleProdDebug --refresh-dependencies --no-daemon | |
| env: | |
| JAVA_TOOL_OPTIONS: "-Dhttps.protocols=TLSv1.2" | |
| KEY_STORE_FILE: ${{ steps.write_base64_file.outputs.filePath }} | |
| KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }} | |
| KEY_ALIAS: ${{ secrets.KEY_ALIAS }} | |
| KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |