-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (38 loc) · 1.56 KB
/
buildRelease.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:
workflow_dispatch:
jobs:
build:
name: Build Snow Release APK
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- uses: gradle/actions/setup-gradle@v4
with:
gradle-version: 8.7
- name: Write sign info
run: |
if [ ! -z "${{ secrets.KEYSTORE }}" ]; then
echo storePassword='${{ secrets.SIGNING_STORE_PASSWORD }}' >> keystore.properties
echo keyAlias='${{ secrets.SIGNING_KEY_ALIAS }}' >> keystore.properties
echo keyPassword='${{ secrets.SIGNING_KEY_PASSWORD }}' >> keystore.properties
echo storeFile='${{ github.workspace }}/key.jks' >> keystore.properties
echo ${{ secrets.KEYSTORE }} | base64 --decode > ${{ github.workspace }}/key.jks
fi
- name: Get Gradle
run: gradle wrapper
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Release apk
run: ./gradlew assembleRelease --stacktrace
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: snow.apk
path: app/build/outputs/apk/release/*.apk