Skip to content

Commit 646fa2c

Browse files
committed
added github workflow
1 parent 10e5c8a commit 646fa2c

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/android.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Android CI
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
tags:
7+
- "*"
8+
pull_request:
9+
branches: ["main"]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
permissions:
16+
contents: write
17+
18+
steps:
19+
- uses: actions/setup-java@v3
20+
with:
21+
distribution: "zulu"
22+
java-version: "17"
23+
24+
- name: Install zipalign
25+
run: |
26+
sudo apt-get update
27+
sudo apt-get install -y zipalign
28+
29+
- name: Checkout repository
30+
uses: actions/checkout@v4
31+
32+
- name: Grant execute permission for gradlew
33+
run: chmod +x gradlew
34+
35+
- name: Build APK
36+
run: ./gradlew assembleRelease
37+
38+
- name: Align APK
39+
run: |
40+
cd app/build/outputs/apk/release
41+
zipalign -v -p 4 app-release-unsigned.apk ludditeinstaller.apk
42+
43+
- name: Release
44+
uses: softprops/action-gh-release@v2
45+
if: startsWith(github.ref, 'refs/tags/')
46+
with:
47+
files: app/build/outputs/apk/release/ludditeinstaller.apk

0 commit comments

Comments
 (0)