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 : Dev Test Build
2+
3+ on :
4+ push :
5+ branches : [ "dev" ] # Only runs when you push to the dev branch
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout code
12+ uses : actions/checkout@v4
13+
14+ - name : Set up JDK 17
15+ uses : actions/setup-java@v4
16+ with :
17+ java-version : ' 17'
18+ distribution : ' temurin'
19+
20+ - name : Make gradlew executable
21+ run : chmod +x ./gradlew
22+
23+ - name : Build Release APK
24+ run : ./gradlew assembleRelease
25+
26+ # Signs the app with your exact production keys so you don't have to uninstall the old one!
27+ - name : Sign APK
28+ uses : ilharp/sign-android-release@v1
29+ id : sign_app
30+ with :
31+ releaseDir : app/build/outputs/apk/release
32+ signingKeyBase64 : ${{ secrets.KEYSTORE }}
33+ alias : ${{ secrets.KEY_ALIAS }}
34+ keyStorePassword : ${{ secrets.KEYSTORE_PASSWORD }}
35+ keyPassword : ${{ secrets.KEY_PASSWORD }}
36+
37+ # Uploads the file privately to the GitHub run instead of making a public release
38+ - name : Upload Test APK
39+ uses : actions/upload-artifact@v4
40+ with :
41+ name : BatteryRemapper-Dev-Test
42+ path : ${{steps.sign_app.outputs.signedFile}}
You can’t perform that action at this time.
0 commit comments