generated from atick-faisal/Jetpack-Compose-Starter
-
-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (42 loc) · 1.32 KB
/
Build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Set up Google Services
run: |
touch app/google-services.json
echo "${CONTENT// /}" | base64 --decode > app/google-services.json
env:
CONTENT: ${{ secrets.GOOGLE_SERVICES }}
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
cache: gradle
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Set up Signing Key
run: |
touch app/key.jks
echo "${KEYSTORE// /}" | base64 --decode > app/key.jks
touch keystore.properties
echo "${KEYSTORE_PROPERTIES// /}" | base64 --decode > keystore.properties
env:
KEYSTORE: ${{ secrets.KEYSTORE }}
KEYSTORE_PROPERTIES: ${{ secrets.KEYSTORE_PROPERTIES }}
- name: Clean
run: ./gradlew clean
- name: Build
run: ./gradlew build