1- name : " Build App and Upload"
1+ name : ' Build App and Upload'
22
33on :
44 # manual trigger but change to any supported event
1111 default : ' all'
1212 type : choice
1313 options :
14- - all
15- - ios
16- - android
14+ - all
15+ - ios
16+ - android
1717
1818 release :
1919 types : [published]
2020
21-
2221jobs :
2322 build_ios :
2423 runs-on : macos-latest
@@ -37,22 +36,22 @@ jobs:
3736 run : /usr/bin/xcodebuild -version
3837
3938 - name : Checkout Repository
40- uses : actions/checkout@v4
39+ uses : actions/checkout@v4
4140
4241 - name : Install Fastlane and Fix CocoaPods
4342 run : |
4443 sudo gem install cocoapods -v 1.15.2
4544 sudo gem install fastlane -NV
4645 fastlane --version
47-
46+
4847 - name : Install Node.js
4948 uses : actions/setup-node@v4
5049 with :
5150 node-version : ' 22.x'
52-
51+
5352 - name : Install Dependencies
5453 run : npm install
55-
54+
5655 - name : Expo Prebuild [iOS]
5756 run : |
5857 npx expo prebuild --platform ios --npm
6968
7069 build_android :
7170 runs-on : ubuntu-latest
72-
71+
7372 # build for android if platform is android or all, or if triggered by a release
7473 if : github.event_name == 'release' || inputs.buildPlatform == 'all' || inputs.buildPlatform == 'android'
7574
8786 with :
8887 distribution : ' temurin' # See 'Supported distributions' for available options
8988 java-version : ' 17'
90-
89+
9190 - name : Install Node.js
9291 uses : actions/setup-node@v4
9392 with :
@@ -101,7 +100,7 @@ jobs:
101100 sed -i "s/{{GOOGLE_MAPS_KEY}}/$GOOGLE_MAPS_KEY/g" app.json
102101 env :
103102 GOOGLE_MAPS_KEY : ${{ secrets.GOOGLE_MAPS_KEY }}
104-
103+
105104 - name : Expo Prebuild [Android]
106105 run : |
107106 npx expo prebuild --platform android --npm
@@ -129,16 +128,16 @@ jobs:
129128 KEY_PASSWORD : ${{ secrets.AAB_PASSWORD }}
130129 STORE_PASSWORD : ${{ secrets.AAB_PASSWORD }}
131130 KEY_PATH : ${{ github.workspace }}/android/app/maroon-rides-release-key.jks
132-
131+
133132 GOOGLE_PLAY_KEY : ${{ secrets.GOOGLE_PLAY_KEY }}
134- PACKAGE_NAME : " com.maroonrides.maroonrides"
133+ PACKAGE_NAME : ' com.maroonrides.maroonrides'
135134 APP_GRADLE_FILE : ${{ github.workspace }}/android/app/build.gradle
136-
135+
137136 - uses : actions/upload-artifact@v4
138137 with :
139138 name : app-bundle.aab
140139 path : ./android/app/build/outputs/bundle/release/app-release.aab
141-
140+
142141 - name : Set outputs
143142 id : git_sha
144143 run : echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
@@ -148,4 +147,4 @@ jobs:
148147 env :
149148 GOOGLE_PLAY_KEY : ${{ secrets.GOOGLE_PLAY_KEY }}
150149 RELEASE_NAME : ${{ github.event.release.tag_name || steps.git_sha.outputs.sha_short }}
151- PACKAGE_NAME : " com.maroonrides.maroonrides"
150+ PACKAGE_NAME : ' com.maroonrides.maroonrides'
0 commit comments