Skip to content

Commit 388f3f1

Browse files
committed
autobuild
1 parent f6b086e commit 388f3f1

4 files changed

Lines changed: 87 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Create Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
workflow_dispatch:
8+
inputs:
9+
release_tag:
10+
description: vx.y.z
11+
required: true
12+
type: string
13+
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout Repo
21+
uses: actions/checkout@v4
22+
23+
- name: Set up JDK 18
24+
uses: actions/setup-java@v4
25+
with:
26+
distribution: 'zulu'
27+
java-version: '18'
28+
java-package: 'jdk'
29+
cache: 'gradle'
30+
31+
- name: Grant execute permission for gradlew
32+
run: chmod +x gradlew
33+
34+
- name: Build APK
35+
run: |
36+
./gradlew build
37+
38+
39+
40+
- name: Sign APK
41+
run: |
42+
ANDROID_SDK_PATH=$ANDROID_HOME/build-tools/35.0.0/apksigner
43+
$ANDROID_SDK_PATH sign \
44+
--ks ${{ secrets.KEYSTORE_PATH }} \
45+
--ks-key-alias ${{ secrets.KEY_ALIAS }} \
46+
--ks-pass pass:${{ secrets.KEYSTORE_PASSWORD }} \
47+
--key-pass pass:${{ secrets.KEY_PASSWORD }} \
48+
--out app-release.apk \
49+
app/build/outputs/apk/release/app-release-unsigned.apk
50+
51+
52+
53+
- name: Upload APK Artifact
54+
uses: actions/upload-artifact@v4
55+
with:
56+
name: apk-artifact
57+
path: app-release.apk
58+
compression-level: 5
59+
60+
release:
61+
needs: [build]
62+
runs-on: ubuntu-latest
63+
permissions:
64+
contents: write
65+
66+
steps:
67+
68+
69+
- name: Download Build Artifacts
70+
uses: actions/download-artifact@v4
71+
with:
72+
name: apk-artifact
73+
74+
75+
76+
- name: Release
77+
uses: softprops/action-gh-release@v2
78+
with:
79+
files: |
80+
app-release.apk

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@
1313
.externalNativeBuild
1414
.cxx
1515
local.properties
16+
17+
/app/release/*

gradle/libs.versions.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ espressoCore = "3.6.1"
99
appcompat = "1.7.0"
1010
loggingInterceptor = "4.12.0"
1111
material = "1.12.0"
12-
constraintlayout = "2.1.4"
13-
lifecycleLivedataKtx = "2.8.7"
14-
lifecycleViewmodelKtx = "2.8.7"
15-
navigationFragment = "2.7.7"
16-
navigationUi = "2.7.7"
12+
constraintlayout = "2.2.1"
13+
lifecycleLivedataKtx = "2.9.0"
14+
lifecycleViewmodelKtx = "2.9.0"
15+
navigationFragment = "2.9.0"
16+
navigationUi = "2.9.0"
1717
okhttp = "5.0.0-alpha.14"
1818
retrofit = "2.11.02"
1919
legacySupportV4 = "1.0.0"

key/AxeDroidKey.jks

2.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)