From a8c53368b424686e04e2c70734789baae163ba32 Mon Sep 17 00:00:00 2001 From: ignaciosantise <25931366+ignaciosantise@users.noreply.github.com> Date: Fri, 13 Feb 2026 14:27:11 -0300 Subject: [PATCH] feat: add 'both' platform option to release workflows Allow releasing AppKit, WalletKit, and POS on both Android and iOS simultaneously with a single workflow trigger. The 'both' option is now the default selection. Co-Authored-By: Claude Haiku 4.5 --- .github/workflows/release-appkit.yaml | 7 ++++--- .github/workflows/release-pos-poc.yaml | 7 ++++--- .github/workflows/release-pos.yaml | 7 ++++--- .github/workflows/release-walletkit.yaml | 7 ++++--- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release-appkit.yaml b/.github/workflows/release-appkit.yaml index eebed332..a3d4a8d2 100644 --- a/.github/workflows/release-appkit.yaml +++ b/.github/workflows/release-appkit.yaml @@ -1,5 +1,5 @@ name: Release AppKit -run-name: "AppKit - ${{ inputs.platform == 'ios' && '🍎 iOS' || '🤖 Android' }} (${{ inputs.release-type }})" +run-name: "AppKit - ${{ inputs.platform == 'both' && '🍎 iOS & 🤖 Android' || inputs.platform == 'ios' && '🍎 iOS' || '🤖 Android' }} (${{ inputs.release-type }})" permissions: id-token: write @@ -13,6 +13,7 @@ on: required: true type: choice options: + - both - android - ios release-type: @@ -30,7 +31,7 @@ on: jobs: release-android: - if: ${{ inputs.platform == 'android' }} + if: ${{ inputs.platform == 'android' || inputs.platform == 'both' }} uses: ./.github/workflows/release-android-base.yaml with: name: AppKit React Native @@ -52,7 +53,7 @@ jobs: firebase-url: ${{ inputs.release-type == 'internal' && vars.FIREBASE_APPKIT_INTERNAL_URL || vars.FIREBASE_APPKIT_PROD_URL }} release-ios: - if: ${{ inputs.platform == 'ios' }} + if: ${{ inputs.platform == 'ios' || inputs.platform == 'both' }} uses: ./.github/workflows/release-ios-base.yaml with: name: AppKit React Native diff --git a/.github/workflows/release-pos-poc.yaml b/.github/workflows/release-pos-poc.yaml index 3f1c233b..82f33957 100644 --- a/.github/workflows/release-pos-poc.yaml +++ b/.github/workflows/release-pos-poc.yaml @@ -1,5 +1,5 @@ name: Release Mobile POS (PoC) -run-name: "Mobile POS (PoC) - ${{ inputs.platform == 'ios' && '🍎 iOS' || '🤖 Android' }}" +run-name: "Mobile POS (PoC) - ${{ inputs.platform == 'both' && '🍎 iOS & 🤖 Android' || inputs.platform == 'ios' && '🍎 iOS' || '🤖 Android' }}" permissions: id-token: write @@ -13,12 +13,13 @@ on: required: true type: choice options: + - both - android - ios jobs: release-android: - if: ${{ inputs.platform == 'android' }} + if: ${{ inputs.platform == 'android' || inputs.platform == 'both' }} uses: ./.github/workflows/release-android-base.yaml with: name: '(PoC) Mobile POS React Native' @@ -41,7 +42,7 @@ jobs: firebase-url: ${{ vars.FIREBASE_POC_POS_URL }} release-ios: - if: ${{ inputs.platform == 'ios' }} + if: ${{ inputs.platform == 'ios' || inputs.platform == 'both' }} uses: ./.github/workflows/release-ios-base.yaml with: name: '(PoC) Mobile POS React Native' diff --git a/.github/workflows/release-pos.yaml b/.github/workflows/release-pos.yaml index 134e587c..7e29f133 100644 --- a/.github/workflows/release-pos.yaml +++ b/.github/workflows/release-pos.yaml @@ -1,5 +1,5 @@ name: Release Mobile POS -run-name: "Mobile POS - ${{ inputs.platform == 'ios' && '🍎 iOS' || '🤖 Android' }}" +run-name: "Mobile POS - ${{ inputs.platform == 'both' && '🍎 iOS & 🤖 Android' || inputs.platform == 'ios' && '🍎 iOS' || '🤖 Android' }}" permissions: id-token: write @@ -13,6 +13,7 @@ on: required: true type: choice options: + - both - android - ios push: @@ -21,7 +22,7 @@ on: jobs: release-android: - if: ${{ github.event_name == 'push' || inputs.platform == 'android' }} + if: ${{ github.event_name == 'push' || inputs.platform == 'android' || inputs.platform == 'both' }} uses: ./.github/workflows/release-android-base.yaml with: name: 'Mobile POS React Native' @@ -44,7 +45,7 @@ jobs: firebase-url: ${{ vars.FIREBASE_POS_URL }} release-ios: - if: ${{ github.event_name != 'push' && inputs.platform == 'ios' }} + if: ${{ github.event_name != 'push' && (inputs.platform == 'ios' || inputs.platform == 'both') }} uses: ./.github/workflows/release-ios-base.yaml with: name: 'Mobile POS React Native' diff --git a/.github/workflows/release-walletkit.yaml b/.github/workflows/release-walletkit.yaml index e31709fc..24d9c47a 100644 --- a/.github/workflows/release-walletkit.yaml +++ b/.github/workflows/release-walletkit.yaml @@ -1,5 +1,5 @@ name: Release WalletKit -run-name: "WalletKit - ${{ inputs.platform == 'ios' && '🍎 iOS' || '🤖 Android' }} (${{ inputs.release-type }})" +run-name: "WalletKit - ${{ inputs.platform == 'both' && '🍎 iOS & 🤖 Android' || inputs.platform == 'ios' && '🍎 iOS' || '🤖 Android' }} (${{ inputs.release-type }})" permissions: id-token: write @@ -13,6 +13,7 @@ on: required: true type: choice options: + - both - android - ios release-type: @@ -30,7 +31,7 @@ on: jobs: release-android: - if: ${{ inputs.platform == 'android' }} + if: ${{ inputs.platform == 'android' || inputs.platform == 'both' }} uses: ./.github/workflows/release-android-base.yaml with: name: WalletKit React Native @@ -52,7 +53,7 @@ jobs: firebase-url: ${{ inputs.release-type == 'internal' && vars.FIREBASE_WALLETKIT_INTERNAL_URL || vars.FIREBASE_WALLETKIT_PROD_URL }} release-ios: - if: ${{ inputs.platform == 'ios' }} + if: ${{ inputs.platform == 'ios' || inputs.platform == 'both' }} uses: ./.github/workflows/release-ios-base.yaml with: name: WalletKit React Native