Build #99
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: Build | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| appBranch: | |
| description: 'App GitHub branch to build' | |
| required: true | |
| default: 'master' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Specified Branch | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.inputs.appBranch }} | |
| - name: Setup JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| cache: 'gradle' | |
| - name: Setup Keystore | |
| run: | | |
| echo "${{ secrets.KEYSTORE }}" > release.b64 | |
| base64 -d release.b64 > release.keystore | |
| - name: Build Application | |
| run: | | |
| ./gradlew clean assembleRelease \ | |
| -PKEYSTORE=../release.keystore \ | |
| -PKEYSTORE_PASSWORD=${{ secrets.KEYSTORE_PASSWORD }} \ | |
| -PKEY_ALIAS=${{ secrets.KEY_ALIAS }} \ | |
| -PKEY_PASSWORD=${{ secrets.KEY_PASSWORD }} \ | |
| -PRELEASE_MAPS_API_KEY=${{ secrets.MAPS_API_KEY }} | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mage-release.apk | |
| path: mage/build/outputs/apk/release/mage-release.apk |