-
Notifications
You must be signed in to change notification settings - Fork 11
48 lines (39 loc) · 1.15 KB
/
deploy-apk.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
name: Deploy APK on GitHub
on:
release:
types:
- created
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Build APK
run: bash gradlew app:assembleRelease
- uses: r0adkll/[email protected]
name: Sign APK
id: sign_app
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: "key0"
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: "34.0.0"
- uses: svenstaro/upload-release-action@v2
name: Upload APK
with:
file: ${{steps.sign_app.outputs.signedReleaseFile}}
asset_name: prepaid_balance.apk
tag: ${{ github.ref }}
repo_token: ${{ secrets.GITHUB_TOKEN }}