-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (53 loc) · 1.79 KB
/
AndroidBuild.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
54
55
56
57
58
59
60
name: AndroidBuild CI/CD
on:
push:
branches: [ master ]
jobs:
build:
name: start integration build
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Setup Java JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Version app
uses: chkfung/android-version-actions@v1.2.3
with:
gradlePath: app/build.gradle
# versionCode: ${{ github.run_number }}
versionCode: '14'
versionName: '1.4'
- name: Assemble Release Bundle
run: ./gradlew bundleRelease
- name: Sign Release
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/bundle/release
signingKeyBase64: ${{ secrets.KEYSTORE }}
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }}
alias: ${{ secrets.APP_NAME_KEY }}
keyPassword: ${{ secrets.KEYSTORE_PASSWORD }}
- name: Setup Authorization With Google Play Store
run: echo '${{ secrets.GOOGLE_PLAY_API_AUTH }}' > service_account.json
- name: Deploy to Internal Channel
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJson: service_account.json
packageName: br.com.devnattiva.deolhoveiculo
releaseFiles: app/build/outputs/bundle/release/app-release.aab
changesNotSentForReview: true
track: production
status: completed
# - name: Build with Gradle
# run: ./gradlew build
#
# - name: Upload a Build Artifact
# uses: actions/upload-pages-artifact@v3
# with:
# name: app.apk
# path: app/build/outputs/apk/debug/app-debug.apk