forked from owlmail/OwlMail
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 892 Bytes
/
GenerateApk.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
name: OwlMail Apk
on:
push:
branches:
- "*"
- "!profiler*"
# - "main"
# pull_request:
# branches:
# - "*"
# - "!profiler*"
jobs:
generate-apk:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Set up Gradle with Cache
uses: gradle/gradle-build-action@v2
- name: Fetch Secrets data
env:
DATA: ${{ secrets.GOOGLE_SERVICES }}
run: echo $DATA > $PWD/app/google-services.json
- name: Generate Release Apk
run: ./gradlew assembleRelease --scan
- uses: actions/upload-artifact@v3
with:
name: Release Apk
path: app/build/outputs/apk/release/app-release.apk