File tree Expand file tree Collapse file tree 2 files changed +27
-8
lines changed
Expand file tree Collapse file tree 2 files changed +27
-8
lines changed Original file line number Diff line number Diff line change 1515 required : true
1616 default : ' patch'
1717 options : [ 'major', 'minor', 'patch' ]
18- custom_notes :
18+ release_title :
19+ type : textarea
20+ description : ' Release title'
21+ required : false
22+ release_notes :
1923 type : textarea
2024 description : ' Custom release notes (optional)'
2125 required : false
22- notify_testers :
26+ create_release :
2327 type : boolean
24- description : ' Notify testers about this build '
28+ description : ' Create New Release '
2529 required : false
26- default : true
27- debug_build :
30+ default : false
31+ notify_testers :
2832 type : boolean
29- description : ' Build debug APK (uncheck for release APK) '
33+ description : ' Notify testers about this build '
3034 required : false
3135 default : true
3236
37+
3338jobs :
3439 build :
3540 runs-on : ubuntu-latest
5560 - name : Change wrapper permissions
5661 run : chmod +x ./gradlew
5762
63+ - uses : BrycensRanch/read-properties-action@v1
64+ id : all
65+ with :
66+ file : app/versions.properties
67+ all : true
5868
5969 # Create APK Debug
6070 - name : Build APK
7686 serviceCredentialsFileContent : ${{ secrets.CREDENTIAL_FILE_CONTENT }}
7787 groups : testers
7888 file : ${{ github.event.inputs.environment == 'staging' && 'app/build/outputs/apk/debug/app-debug.apk' || 'app/build/outputs/apk/release/app-release.apk' }}
89+
90+ - name : Create Release
91+ if : ${{ github.event.inputs.create_release }}
92+ uses : elgohr/Github-Release-Action@v5
93+ env :
94+ GH_TOKEN : ${{ secrets.TMDB_GITHUB_TOKEN }}
95+ with :
96+ title : " ${{ github.event.inputs.release_title || 'New Release' }}"
97+ tag : " v${{ steps.all.outputs.version_major }}.${{ steps.all.outputs.version_minor }}.${{ steps.all.outputs.version_patch }}"
Original file line number Diff line number Diff line change 11version_major = 1
2- version_minor = 1
3- version_patch = 2
2+ version_minor = 0
3+ version_patch = 4
You can’t perform that action at this time.
0 commit comments