Skip to content

Commit a0f0632

Browse files
authored
Create android.yml
1 parent 62fa4ad commit a0f0632

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/android.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Android CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: set up JDK 11
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: '11'
20+
distribution: 'temurin'
21+
cache: gradle
22+
23+
- name: Create file
24+
run: cat /home/runner/work/PLUTO-Android/PLUTO-Android/app/google-services.json | base64
25+
26+
- name: Putting data
27+
env:
28+
DATA: ${{ secrets.GOOGLE_SERVICES_JSON }}
29+
run: echo $DATA > /home/runner/work/PLUTO-Android/PLUTO-Android/app/google-services.json
30+
31+
- name: Grant execute permission for gradlew
32+
run: chmod +x gradlew
33+
- name: Build with Gradle
34+
run: ./gradlew build

0 commit comments

Comments
 (0)