-
Notifications
You must be signed in to change notification settings - Fork 25
46 lines (36 loc) · 1.47 KB
/
build.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
name: Build
on: [push]
jobs:
gradle:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: "18.x"
- name: Install Node.js Dependencies
run: npm ci
- name: Use Java 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "microsoft"
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Set Android SDK Directory
run: |
echo "sdk.dir=$ANDROID_SDK_ROOT" > $GITHUB_WORKSPACE/android/local.properties
- name: Decode and save the keystore file
run: |
echo ${{ secrets.CONTEXT_LAUNCHER_UPLOAD_STORE_FILE }} | base64 --decode > $GITHUB_WORKSPACE/android/upload.keystore
- name: Set environment variables
run: |
echo "CONTEXT_LAUNCHER_UPLOAD_STORE_PASSWORD=${{ secrets.CONTEXT_LAUNCHER_UPLOAD_STORE_PASSWORD }}" >> $GITHUB_ENV
echo "CONTEXT_LAUNCHER_UPLOAD_KEY_ALIAS=${{ secrets.CONTEXT_LAUNCHER_UPLOAD_KEY_ALIAS }}" >> $GITHUB_ENV
echo "CONTEXT_LAUNCHER_UPLOAD_KEY_PASSWORD=${{ secrets.CONTEXT_LAUNCHER_UPLOAD_KEY_PASSWORD }}" >> $GITHUB_ENV
echo "CONTEXT_LAUNCHER_UPLOAD_STORE_FILE=$GITHUB_WORKSPACE/android/upload.keystore" >> $GITHUB_ENV
- name: Build
working-directory: ./android
run: ./gradlew --no-daemon build