diff --git a/.github/workflows/build-release-binaries.yml b/.github/workflows/build-release-binaries.yml index 1d0afb7dc..d4844bdb3 100644 --- a/.github/workflows/build-release-binaries.yml +++ b/.github/workflows/build-release-binaries.yml @@ -18,6 +18,7 @@ jobs: with: electrs_endpoint: blockstream.info:110 coordinator_p2p_endpoint: 022ae8dbec1caa4dac93f07f2ebf5ad7a5dd08d375b79f11095e81b065c2155156@34.30.20.202:9045 + network: mainnet tag: ${{ github.event.release.target_commitish }} build_android_apk: diff --git a/.github/workflows/deliverables-push-main.yml b/.github/workflows/deliverables-push-main.yml index b01231943..25ede9d17 100644 --- a/.github/workflows/deliverables-push-main.yml +++ b/.github/workflows/deliverables-push-main.yml @@ -44,4 +44,5 @@ jobs: with: electrs_endpoint: 35.189.57.114:50000 coordinator_p2p_endpoint: 026e1de0e76902d71d2c27bfdda9d48c19c4c550f08bb4189d7208246e0e3af97e@35.189.57.114:9045 + network: regtest tag: main diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 12904bc04..2dc3eddb3 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -9,21 +9,30 @@ on: coordinator_p2p_endpoint: required: true type: string + network: + required: true + type: string + description: "The target network for the release, e.g. mainnet/regtest" tag: required: true description: "The branch, tag or SHA to checkout." type: string workflow_dispatch: - electrs_endpoint: - required: true - type: string - coordinator_p2p_endpoint: - required: true - type: string - tag: - required: true - description: "The branch, tag or SHA to checkout." - type: string + inputs: + electrs_endpoint: + required: true + type: string + coordinator_p2p_endpoint: + required: true + type: string + network: + required: true + type: string + description: "The target network for the release, e.g. mainnet/regtest" + tag: + required: true + description: "The branch, tag or SHA to checkout." + type: string jobs: build: @@ -126,10 +135,18 @@ jobs: BUILD_NAME=${{ steps.version.outputs.data }} BUILD_NUMBER=$(git rev-list HEAD --count) cd mobile - flutter build ipa --export-options-plist=ios/exportOptions.plist --dart-define="ELECTRS_ENDPOINT=$ELECTRS_ENDPOINT" --dart-define="COORDINATOR_P2P_ENDPOINT=$COORDINATOR_P2P_ENDPOINT" --dart-define="COMMIT=$(git rev-parse HEAD)" --dart-define="BRANCH=$(git rev-parse --abbrev-ref HEAD)" --build-name=$BUILD_NAME --build-number=$BUILD_NUMBER + flutter build ipa --export-options-plist=ios/exportOptions.plist \ + --dart-define="ELECTRS_ENDPOINT=$ELECTRS_ENDPOINT" \ + --dart-define="COORDINATOR_P2P_ENDPOINT=$COORDINATOR_P2P_ENDPOINT" \ + --dart-define="NETWORK=$NETWORK" \ + --dart-define="COMMIT=$(git rev-parse HEAD)" \ + --dart-define="BRANCH=$(git rev-parse --abbrev-ref HEAD)" \ + --build-name=$BUILD_NAME \ + --build-number=$BUILD_NUMBER env: ELECTRS_ENDPOINT: ${{ inputs.electrs_endpoint }} COORDINATOR_P2P_ENDPOINT: ${{ inputs.coordinator_p2p_endpoint }} + NETWORK: ${{ inputs.network }} - name: Release to TestFlight env: