Skip to content

Commit 175c3cc

Browse files
committed
ci: Add GitHub Actions workflow + bump to v2.0.0
- Added build-apk.yml for automated APK builds on push - Auto-creates GitHub Release on version tags (v*) - Bumped version to v2.0.0 (major: Gemini → OpenAI-compatible LLM)
1 parent a53a843 commit 175c3cc

2 files changed

Lines changed: 64 additions & 2 deletions

File tree

.github/workflows/build-apk.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Build Release APK
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
tags: [ 'v*' ]
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up JDK 17
18+
uses: actions/setup-java@v4
19+
with:
20+
java-version: '17'
21+
distribution: 'temurin'
22+
23+
- name: Setup Android SDK
24+
uses: android-actions/setup-android@v3
25+
26+
- name: Grant execute permission for gradlew
27+
run: chmod +x gradlew
28+
29+
- name: Set SDK path
30+
run: echo "sdk.dir=$ANDROID_HOME" > local.properties
31+
32+
- name: Build Release APK
33+
run: ./gradlew assembleDefaultRelease --no-daemon
34+
35+
- name: Upload APK artifact
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: AirNote-release
39+
path: app/build/outputs/apk/default/release/*.apk
40+
41+
release:
42+
needs: build
43+
runs-on: ubuntu-latest
44+
if: startsWith(github.ref, 'refs/tags/v')
45+
46+
permissions:
47+
contents: write
48+
49+
steps:
50+
- name: Download APK artifact
51+
uses: actions/download-artifact@v4
52+
with:
53+
name: AirNote-release
54+
path: ./apk
55+
56+
- name: Create GitHub Release
57+
uses: softprops/action-gh-release@v2
58+
with:
59+
files: ./apk/*.apk
60+
generate_release_notes: true
61+
draft: false
62+
prerelease: false

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ android {
3434
applicationId = "com.babelsoftware.airnote"
3535
minSdk = 26
3636
targetSdk = 36
37-
versionCode = 1
38-
versionName = "v1.6.1"
37+
versionCode = 2
38+
versionName = "v2.0.0"
3939
vectorDrawables {
4040
useSupportLibrary = true
4141
}

0 commit comments

Comments
 (0)