2022-04-29 23:49:13 +02:00
|
|
|
name: BuildReleaseApk
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
buildReleaseApk:
|
|
|
|
runs-on: macos-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout project
|
|
|
|
uses: actions/checkout@v3
|
2023-05-26 21:15:42 +02:00
|
|
|
with:
|
|
|
|
fetch-depth: "0"
|
2022-04-29 23:49:13 +02:00
|
|
|
|
|
|
|
- name: Specify node version
|
|
|
|
uses: actions/setup-node@v2-beta
|
|
|
|
with:
|
|
|
|
node-version: 16
|
|
|
|
|
|
|
|
- name: Use npm caches
|
|
|
|
uses: actions/cache@v2
|
|
|
|
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
|
2022-10-23 21:01:08 +02:00
|
|
|
run: npm install --production
|
2022-04-29 23:49:13 +02:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
env:
|
|
|
|
KEYSTORE_FILE_HEX: ${{ secrets.KEYSTORE_FILE_HEX }}
|
|
|
|
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
|
|
|
|
run: ./scripts/build-release-apk.sh
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
if: success()
|
|
|
|
with:
|
|
|
|
name: apk
|
|
|
|
path: ./android/app/build/outputs/apk/release/app-release.apk
|