-
Notifications
You must be signed in to change notification settings - Fork 35
42 lines (35 loc) · 1.1 KB
/
build_release.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: Build & Release
on:
release:
types: published
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'oracle'
- name: Build unsigned apk
run: |
chmod +x gradlew
./gradlew assembleRelease
- name: Sign apk
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/apk/release
alias: ${{ secrets.KEY_ALIAS }}
signingKeyBase64: ${{ secrets.KEYSTORE }}
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: "34.0.0"
- name: Rename signed apk
run: |
cd app/build/outputs/apk/release
mv app-release-unsigned-signed.apk vtop_chennai_${{ github.ref_name }}.apk
- name: Upload signed apk
uses: softprops/action-gh-release@v1
with:
files: app/build/outputs/apk/release/vtop_chennai_${{ github.ref_name }}.apk