File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments