Skip to content

Commit

Permalink
Create gradle-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MohitGupta121 committed May 30, 2022
1 parent 23c5f2c commit 72c229b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build
on: [push, pull_request]

jobs:
build_apk:
name: Generate APK
runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Setup Node.js environment
uses: actions/setup-node@v2.1.5
with:
node-version: '12'
- name: Set up JDK 12
uses: actions/setup-java@v1
with:
java-version: 12

# Cache gradle
- name: Cache Gradle and wrapper
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: cache-${{ runner.os }}-${{ matrix.jdk }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant Permission to Execute
run: chmod +x gradlew

- name: Build debug APK
run: bash ./gradlew assembleDebug --stacktrace
- name: Upload APK
uses: actions/upload-artifact@v1
with:
name: app
path: app/build/outputs/apk/debug/app-debug.apk

0 comments on commit 72c229b

Please sign in to comment.