Move wallet in MusicDAO to separate file #213
Workflow file for this run
This file contains 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 Release APK for pull requests | |
on: | |
pull_request_target: | |
jobs: | |
apk: | |
name: Build APK | |
runs-on: ubuntu-latest | |
environment: | |
name: apk_build | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: refs/pull/${{github.event.pull_request.number}}/merge | |
- uses: ./.github/actions/checkout_submodules | |
- name: Setup Java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Build release APK | |
run: | | |
echo $KEYSTORE_FILE | base64 -d > app/build.keystore | |
./gradlew assembleRelease \ | |
-Pandroid.injected.signing.store.file=$(pwd)/app/build.keystore \ | |
-Pandroid.injected.signing.store.password=$KEYSTORE_PASSWORD \ | |
-Pandroid.injected.signing.key.alias=$KEY_ALIAS \ | |
-Pandroid.injected.signing.key.password=$KEY_PASSWORD | |
env: | |
KEYSTORE_FILE: ${{ secrets.KEYSTORE_FILE }} | |
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | |
KEY_ALIAS: ${{ secrets.KEY_ALIAS }} | |
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
- name: Upload APK | |
uses: actions/upload-artifact@v1 | |
with: | |
name: app | |
path: app/build/outputs/apk/release/app-release.apk |