-
Notifications
You must be signed in to change notification settings - Fork 2
74 lines (73 loc) · 2.3 KB
/
android_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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: android-build
on:
push:
# Pattern matched against refs/tags
tags:
- "**" # Push events to every tag including hierarchical tags like v1.0/beta
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
install-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- name: Install npm dependencies
run: |
yarn
build-android:
needs: install-and-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- name: Install npm dependencies
run: |
yarn
- name: Decode Keystore
id: decode_keystore
uses: timheuer/base64-to-file@v1
with:
fileName: "release.keystore"
fileDir: "/home/runner/work/ssp-key/ssp-key/android/app/"
encodedString: ${{ secrets.ANDROID_SIGNING_KEY }}
- name: Build Android APK Release
run: |
cd android && ./gradlew assembleRelease
env:
SIGNING_KEY_ALIAS: ${{ secrets.ANDROID_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.ANDROID_KEY_STORE_PASSWORD }}
- name: Build Android ABB Release
run: |
cd android && ./gradlew bundleRelease
env:
SIGNING_KEY_ALIAS: ${{ secrets.ANDROID_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.ANDROID_KEY_STORE_PASSWORD }}
- name: Upload APK Artifact
uses: actions/upload-artifact@v1
with:
name: app-release.apk
path: android/app/build/outputs/apk/release/
- name: Upload AAB Artifact
uses: actions/upload-artifact@v1
with:
name: app-release.aab
path: android/app/build/outputs/bundle/release/