Update android.yml
This commit is contained in:
parent
eaff59e6fc
commit
c0da816952
1 changed files with 15 additions and 5 deletions
20
.github/workflows/android.yml
vendored
20
.github/workflows/android.yml
vendored
|
|
@ -1,8 +1,6 @@
|
||||||
name: Android CI
|
name: Android CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [ "main" ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
|
@ -12,8 +10,20 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: set up JDK 11
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: '11'
|
||||||
|
distribution: 'temurin'
|
||||||
|
cache: gradle
|
||||||
|
|
||||||
|
- uses: gradle/gradle-build-action@v2
|
||||||
|
with:
|
||||||
|
gradle-version: 7.5
|
||||||
- name: Create Properties File
|
- name: Create Properties File
|
||||||
run: touch local.properties
|
run: touch local.properties
|
||||||
- name: Build Android App
|
- name: Grant execute permission for gradlew
|
||||||
uses: sparkfabrik/android-build-action@v1.3.4
|
run: chmod +x gradlew
|
||||||
|
- name: Build with Gradle
|
||||||
|
run: ./gradlew build
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue