@@ -56,22 +56,20 @@ jobs:
56
56
ruby-version : ' 3.2.3' # Specify a Ruby version
57
57
bundler-cache : true
58
58
59
- # Step 5: Bump version using Fastlane
60
- - name : Bump version
61
- run : bundle exec fastlane bump_version version_type:${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version_type || 'patch' }}
59
+ # Step 5: Bump Android version
60
+ - name : Bump Android version
61
+ run : bundle exec fastlane bump_version_android version_type:${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version_type || 'patch' }}
62
62
63
- # Step 6: Commit and push version changes
64
- - name : Commit and push version changes
63
+ # Step 6: Commit and push Android version changes
64
+ - name : Commit and push Android version changes
65
65
env :
66
66
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
67
67
run : |
68
68
git config user.name "GitHub Actions"
69
69
git config user.email "[email protected] "
70
- git add .version package.json android/app/build.gradle ios/**/Info.plist
71
- git commit -m "Bump version to $(cat .version)"
70
+ git add .version package.json android/app/build.gradle
71
+ git commit -m "Bump Android version to $(cat .version)"
72
72
git push
73
- git tag "v$(cat .version)"
74
- git push origin "v$(cat .version)"
75
73
76
74
# Step 7: Set up Android Keystore
77
75
- name : Set up Android Keystore
@@ -145,7 +143,24 @@ jobs:
145
143
working-directory : ios
146
144
run : pod install
147
145
148
- # Step 6: Build and upload iOS app to TestFlight
146
+ # Step 6: Bump iOS version
147
+ - name : Bump iOS version
148
+ run : bundle exec fastlane bump_version_ios
149
+
150
+ # Step 7: Commit, push, and tag iOS version changes
151
+ - name : Commit, push, and tag iOS version changes
152
+ env :
153
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
154
+ run : |
155
+ git config user.name "GitHub Actions"
156
+ git config user.email "[email protected] "
157
+ git add ios/**/Info.plist
158
+ git commit -m "Bump iOS version to $(cat .version)"
159
+ git push
160
+ git tag "v$(cat .version)"
161
+ git push origin "v$(cat .version)"
162
+
163
+ # Step 8: Build and upload iOS app to TestFlight
149
164
- name : Build and upload iOS app
150
165
working-directory : ios
151
166
env :
0 commit comments