File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build beta only
2+
3+ on : [workflow_dispatch]
4+
5+ jobs :
6+ build :
7+
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - uses : actions/checkout@v3
12+ - name : set up JDK 17
13+ uses : actions/setup-java@v3
14+ with :
15+ java-version : ' 17'
16+ distribution : ' temurin'
17+ cache : gradle
18+
19+ - name : Access test login credentials
20+ run : |
21+ echo "TEST_USER_NAME=${{ secrets.TEST_USER_NAME }}" >> local.properties
22+ echo "TEST_USER_PASSWORD=${{ secrets.TEST_USER_PASSWORD }}" >> local.properties
23+
24+ - name : Grant execute permission for gradlew
25+ run : chmod +x gradlew
26+
27+ - name : Set env
28+ run : echo "COMMIT_SHA=$(git log -n 1 --format='%h')" >> $GITHUB_ENV
29+
30+ - name : Generate betaDebug APK
31+ run : ./gradlew assembleBetaDebug --stacktrace
32+
33+ - name : Rename betaDebug APK
34+ run : mv app/build/outputs/apk/beta/debug/app-*.apk app/build/outputs/apk/beta/debug/apps-android-commons-betaDebug-$COMMIT_SHA.apk
35+
36+ - name : Upload betaDebug APK
37+ uses : actions/upload-artifact@v4
38+ with :
39+ name : apps-android-commons-betaDebugAPK-${{ env.COMMIT_SHA }}
40+ path : app/build/outputs/apk/beta/debug/*.apk
41+ retention-days : 30
You can’t perform that action at this time.
0 commit comments