Skip to content

Merge remote-tracking branch 'upstream/master' #171

Merge remote-tracking branch 'upstream/master'

Merge remote-tracking branch 'upstream/master' #171

name: BuildReleaseApk
on: [push, pull_request]
jobs:
buildReleaseApk:
runs-on: macos-latest
steps:
- name: Checkout project
uses: actions/checkout@v3
with:
fetch-depth: "0"
- name: Specify node version
uses: actions/setup-node@v3
with:
node-version: 16
- name: Use npm caches
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Use specific Java version for sdkmanager to work
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'gradle'
- name: Install node_modules
run: npm install --production
- name: Build
env:
KEYSTORE_FILE_BASE64: ${{ secrets.KEYSTORE_FILE_BASE64 }}
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
run: ./scripts/build-release-apk.sh
- uses: actions/upload-artifact@v3
if: success()
with:
name: apk
path: ./android/app/build/outputs/apk/release/app-release.apk