Skip to content

Commit 2954c40

Browse files
committed
Increase image sizes in README.md for enhanced visibility, add release.yml
1 parent 12a3658 commit 2954c40

2 files changed

Lines changed: 78 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Android Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Java (JDK)
20+
uses: actions/setup-java@v4
21+
with:
22+
distribution: 'temurin'
23+
java-version: '17'
24+
25+
- name: Set up Flutter
26+
uses: subosito/flutter-action@v2
27+
with:
28+
channel: 'stable'
29+
cache: true
30+
31+
- name: Flutter pub get
32+
run: flutter pub get
33+
34+
- name: Build split-per-ABI APKs (release)
35+
run: flutter build apk --release --split-per-abi -t lib/main.dart
36+
37+
- name: Rename APKs with version and ABI
38+
shell: bash
39+
run: |
40+
set -euo pipefail
41+
if [[ "${{ github.ref_type }}" == "tag" ]]; then
42+
VERSION="${{ github.ref_name }}"
43+
else
44+
VERSION="ci-${{ github.run_number }}"
45+
fi
46+
VERSION_NO_V="${VERSION#v}"
47+
mkdir -p dist
48+
cp build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk "dist/message-mirror-${VERSION_NO_V}-armeabi-v7a.apk"
49+
cp build/app/outputs/flutter-apk/app-arm64-v8a-release.apk "dist/message-mirror-${VERSION_NO_V}-arm64-v8a.apk"
50+
cp build/app/outputs/flutter-apk/app-x86_64-release.apk "dist/message-mirror-${VERSION_NO_V}-x86_64.apk"
51+
52+
- name: Upload build artifacts
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: android-apk
56+
path: dist/*.apk
57+
58+
release:
59+
needs: build
60+
runs-on: ubuntu-latest
61+
steps:
62+
- name: Download artifacts
63+
uses: actions/download-artifact@v4
64+
with:
65+
path: dist
66+
67+
- name: Create GitHub Release
68+
if: startsWith(github.ref, 'refs/tags/')
69+
uses: softprops/action-gh-release@v2
70+
with:
71+
files: |
72+
dist/**/*.apk
73+
generate_release_notes: true
74+
75+

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
Always-on Android companion that captures notifications (and optional SMS) on your device and forwards them to a configured HTTP endpoint. Built with Flutter + minimal Kotlin.
44

55
<p align="center">
6-
<img src="images/1.jpg" alt="Configuration and destination settings" width="180">
7-
<img src="images/2.jpg" alt="Permissions and service control" width="180">
8-
<img src="images/3.jpg" alt="Logs and retry queue viewer" width="180">
6+
<img src="images/1.jpg" alt="Configuration and destination settings" width="200">
7+
<img src="images/2.jpg" alt="Permissions and service control" width="200">
8+
<img src="images/3.jpg" alt="Logs and retry queue viewer" width="200">
99
<br/>
1010
</p>
1111

0 commit comments

Comments
 (0)