File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Nightly APK
2+
3+ on :
4+ schedule :
5+ - cron : " 0 0 * * *"
6+ workflow_dispatch : # This enables manual triggering
7+
8+ jobs :
9+ build :
10+ # if: github.event.schedule_activity.commits > 0
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout code
14+ 15+
16+ - name : Setup Java JDK
17+ 18+ with :
19+ distribution : ' temurin'
20+ java-version : ' 17'
21+ cache : ' gradle'
22+
23+ - name : Grant execute permission for gradlew
24+ run : chmod +x gradlew
25+
26+ - name : Build with Gradle
27+ run : ./gradlew assembleDebug --stacktrace
28+
29+ - name : Rename output APK
30+ if : success()
31+ run : |
32+ DATE=$(date +'%Y%m%d')
33+ mv app/build/outputs/apk/debug/app-debug.apk app/build/outputs/apk/debug/OSMTracker-nightly-$DATE.apk
34+
35+ - name : Create or Update GitHub Nightly Release
36+ if : success()
37+ 38+ with :
39+ tag_name : ' nightly'
40+ name : ' Nightly Build'
41+ draft : false
42+ prerelease : true
43+ files : app/build/outputs/apk/debug/OSMTracker-nightly-*.apk
44+ body : " Nightly build for OSMTracker"
45+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments