Bump iOS/Android build numbers, build the Android .aab bundle, commit and push. Use this skill whenever the user says 'build release', 'bump build', 'build aab', 'bump and push', 'bump ios build number', 'build the aab file', or any combination of bumping build numbers, building Android bundles, and pushing. Also trigger when user says 'release build' or 'ship the build'.
Automates the full release build workflow for the Phzse app: bump build numbers, build web assets, build the Android .aab, commit everything, and push.
C:/Users/skf_s/phzse project directoryExecute these steps in order. Stop and report if any step fails.
cd "C:/Users/skf_s/phzse" && git branch
Confirm you're on master. If not, warn the user before proceeding.
Read these two files to find the current build number:
codemagic.yaml — find the line agvtool new-version -all N and extract Nandroid/app/build.gradle — find the line versionCode N and extract NversionName from build.gradle (e.g., "2.1.0") for the .aab filenameBoth should be the same number. The new build number = current + 1.
Edit both files, replacing the old number with the new one:
codemagic.yaml: agvtool new-version -all {NEW}android/app/build.gradle: versionCode {NEW}cd "C:/Users/skf_s/phzse" && npm run build
Wait for completion. This must succeed before proceeding.
cd "C:/Users/skf_s/phzse" && npx cap sync android
cd "C:/Users/skf_s/phzse/android" && ./gradlew bundleRelease
This takes 30-60 seconds. Must finish with BUILD SUCCESSFUL.
cp "C:/Users/skf_s/phzse/android/app/build/outputs/bundle/release/app-release.aab" \
"C:/Users/skf_s/phzse/app-release-v{VERSION_NAME}-build{NEW_BUILD}.aab"
The .aab is gitignored, so it won't be committed — it's just for local reference / Play Store upload.
Stage all modified files (not untracked directories like .gstack/ or prototypes/):
git add codemagic.yaml android/app/build.gradle
Also stage any OTHER unstaged modified files from the current session (check git status first). Do NOT stage untracked directories unless they're clearly part of the work.
Commit with: