-
Notifications
You must be signed in to change notification settings - Fork 19
43 lines (34 loc) · 1.11 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
name: Build launcher
on:
workflow_dispatch:
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/setup-java@v3.9.0
with:
java-version: 19
distribution: temurin
cache: gradle
- name: Generate keystore file
run: echo ${{secrets.KEYSTORE_FILE}} | base64 -d > ~/release.keystore
- name: Generate keystore properties
run: |
touch ${{github.workspace}}/app/signing.properties
echo "storeFile=$HOME/release.keystore
storePassword=${{secrets.KEYSTORE_PASSWORD}}
keyAlias=${{secrets.KEY_ALIAS}}
keyPassword=${{secrets.KEY_PASSWORD}}" > ${{github.workspace}}/app/signing.properties
- name: Fix gradle permissions
run: chmod +x ./gradlew
- name: Build project
run: ./gradlew app:assembleDebug
- name: Upload development build
uses: actions/upload-artifact@v3
with:
name: geode-launcher-debug
path: ${{github.workspace}}/app/build/outputs/apk/debug/app-debug.apk