From 7c6d744ff6ad762205a87ccd2489e2c44dbac24f Mon Sep 17 00:00:00 2001 From: andrew-polk Date: Fri, 16 Dec 2022 15:12:46 -0700 Subject: [PATCH] Build with Github Actions --- .github/workflows/gradle-build.yml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/gradle-build.yml diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml new file mode 100644 index 0000000..ecb4014 --- /dev/null +++ b/.github/workflows/gradle-build.yml @@ -0,0 +1,36 @@ +name: Android CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: gradle + + - name: gradle wrapper + run: gradle wrapper + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build + - name: Build Release Bundle + run: ./gradlew :app:bundleRelease + + - name: Upload bundle artifact + uses: actions/upload-artifact@v3 + with: + name: HearThisAndroidReleaseBundle + path: app/build/outputs/bundle/release/app-release.aab \ No newline at end of file