File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 - ios
1414 - android
1515
16- release :
17- types : [published]
16+ workflow_call :
17+ inputs :
18+ buildPlatform :
19+ description : ' Platform to Build'
20+ required : false
21+ default : ' all'
22+ type : string
23+ tagName :
24+ description : ' Release tag to label the build with'
25+ required : false
26+ default : ' '
27+ type : string
28+ changelog :
29+ description : ' Release notes sent to TestFlight'
30+ required : false
31+ default : ' '
32+ type : string
1833
1934jobs :
2035 build_ios :
2136 runs-on : macos-latest
2237
23- if : github.event_name == 'release' || inputs.buildPlatform == 'all' || inputs.buildPlatform == 'ios'
38+ if : inputs.buildPlatform == 'all' || inputs.buildPlatform == 'ios'
2439
2540 steps :
2641 - name : List Xcode Installs
@@ -63,12 +78,12 @@ jobs:
6378 ASC_ISSUER_ID : ${{ secrets.ASC_ISSUER_ID }}
6479 ASC_KEY_BASE64 : ${{ secrets.ASC_KEY_BASE64 }}
6580 GIT_AUTHORIZATION : ${{ secrets.GIT_AUTHORIZATION }}
66- CHANGELOG : ${{ github.event.release.body }}
81+ CHANGELOG : ${{ inputs.changelog }}
6782
6883 build_android :
6984 runs-on : ubuntu-latest
7085
71- if : github.event_name == 'release' || inputs.buildPlatform == 'all' || inputs.buildPlatform == 'android'
86+ if : inputs.buildPlatform == 'all' || inputs.buildPlatform == 'android'
7287
7388 steps :
7489 - name : Checkout Repository
@@ -122,5 +137,5 @@ jobs:
122137 run : fastlane android upload
123138 env :
124139 GOOGLE_PLAY_KEY : ${{ secrets.GOOGLE_PLAY_KEY }}
125- RELEASE_NAME : ${{ github.event.release.tag_name || steps.git_sha.outputs.sha_short }}
140+ RELEASE_NAME : ${{ inputs.tagName || steps.git_sha.outputs.sha_short }}
126141 PACKAGE_NAME : ' com.maroonrides.maroonrides'
Original file line number Diff line number Diff line change @@ -12,7 +12,22 @@ permissions:
1212jobs :
1313 release-please :
1414 runs-on : ubuntu-latest
15+ outputs :
16+ release_created : ${{ steps.release.outputs.release_created }}
17+ tag_name : ${{ steps.release.outputs.tag_name }}
18+ body : ${{ steps.release.outputs.body }}
1519 steps :
1620 - uses : googleapis/release-please-action@v4
21+ id : release
1722 with :
1823 token : ${{ secrets.GITHUB_TOKEN }}
24+
25+ build :
26+ needs : release-please
27+ if : needs.release-please.outputs.release_created == 'true'
28+ uses : ./.github/workflows/build.yml
29+ secrets : inherit
30+ with :
31+ buildPlatform : all
32+ tagName : ${{ needs.release-please.outputs.tag_name }}
33+ changelog : ${{ needs.release-please.outputs.body }}
You can’t perform that action at this time.
0 commit comments