Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Commit

Permalink
npm caching and exclude APP folder (#127)
Browse files Browse the repository at this point in the history
* npm caching and exclude APP folder

* fix APP to App

* Ignore paths on pull_request
  • Loading branch information
kreativmonkey authored Apr 21, 2020
1 parent 684eaef commit a85f903
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@ env:
ANDROID_HOME: ~/android-sdk-linux
ANDROID_APK_FILE: 'android/app/build/outputs/apk/release/app-release.apk'

on:
on:
pull_request:
branches:
- master
paths-ignore:
- '.github/**'
- '**.md'
- 'LICENSE'
push:
paths-ignore:
- '.github/**'
- '**.md'
- 'LICENSE'
- 'App/**'

jobs:
build:
Expand All @@ -30,15 +38,18 @@ jobs:
with:
java-version: '8'
java-package: jdk

- name: Install Android SDK
run: |
sh ci/install-android-sdk.sh
run: sh ci/install-android-sdk.sh

- uses: bahmutov/npm-install@v1

- name: Install npm dependencies
run: |
npm ci
run: npm ci

- name: Build APK
run: |
npm run android:build-apk
run: npm run android:build-apk

- name: Archive APK
uses: actions/upload-artifact@v1
with:
Expand Down

0 comments on commit a85f903

Please sign in to comment.