workflows: android-workflow: name: Ionic Capacitor Android Workflow max_build_duration: 120 environment: android_signing: - GabineteDigital vars: PACKAGE_NAME: "com.gpr.gabinetedigital" node: latest scripts: - name: Install npm dependencies for Ionic Capacitor project script: | npm install --force - name: Set up local.properties script: | echo "sdk.dir=$ANDROID_SDK_ROOT" > "$CM_BUILD_DIR/android/local.properties" - name: Update dependencies and copy web assets to native project script: | # if you don't need to update native dependencies, use this: # npx cap copy # # to update native dependencies, use this command: ionic cap build android --prod - name: Build Android release script: | cd android ./gradlew bundleRelease \ -PversionCode=1 \ -PversionName=1.0.0 artifacts: - android/app/build/outputs/**/*.apk publishing: email: recipients: - user_1@example.com - user_2@example.com notify: success: true failure: false