Skip to content

Commit e3d6b43

Browse files
committed
Build with Github Actions
1 parent 5923f89 commit e3d6b43

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/gradle-build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Android CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: set up JDK 11
17+
uses: actions/setup-java@v3
18+
with:
19+
java-version: '11'
20+
distribution: 'temurin'
21+
cache: gradle
22+
23+
- name: gradle wrapper
24+
run: gradle wrapper
25+
- name: Grant execute permission for gradlew
26+
run: chmod +x gradlew
27+
- name: Build with Gradle
28+
run: ./gradlew build
29+
- name: Build Release Bundle
30+
run: ./gradlew :app:bundleRelease
31+
32+
- name: Upload bundle artifact
33+
uses: actions/upload-artifact@v3
34+
with:
35+
name: HearThisAndroidReleaseBundle
36+
path: app/build/outputs/bundle/release/app-release.aab

0 commit comments

Comments
 (0)