Distribute All #634
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Overview | |
# This GitHub Action automates the build and distribution process of the Haqq Wallet application for both (Android and iOS) platforms. | |
# It builds the project and distributes the builds to TestFlight and Google Play. | |
name: Distribute All | |
on: | |
workflow_dispatch: | |
inputs: | |
STORIES_ENABLED: | |
type: choice | |
description: STORIES_ENABLED | |
options: | |
- true | |
- false | |
BUILD_DESCRIPTION: | |
required: true | |
description: Please add a short note for a new build | |
workflow_call: | |
inputs: | |
STORIES_ENABLED: | |
required: true | |
type: string | |
BUILD_DESCRIPTION: | |
required: true | |
type: string | |
jobs: | |
test: | |
name: Tests | |
runs-on: ubuntu-cpu16-ram64 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup NodeJS@18 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install packages | |
run: yarn install | |
build_android: | |
name: Android | |
uses: ./.github/workflows/distribute-android.yml | |
secrets: inherit | |
with: | |
IS_DEVELOPMENT: false | |
STORIES_ENABLED: ${{github.event.inputs.STORIES_ENABLED || inputs.STORIES_ENABLED || 'true'}} | |
BUILD_DESCRIPTION: ${{inputs.BUILD_DESCRIPTION || github.event.inputs.BUILD_DESCRIPTION || 'Action for Merged PR'}} | |
needs: | |
- test | |
build_ios: | |
name: iOS | |
uses: ./.github/workflows/distribute-ios.yml | |
secrets: inherit | |
with: | |
IS_DEVELOPMENT: false | |
STORIES_ENABLED: ${{github.event.inputs.STORIES_ENABLED || inputs.STORIES_ENABLED || 'true'}} | |
BUILD_DESCRIPTION: ${{inputs.BUILD_DESCRIPTION || github.event.inputs.BUILD_DESCRIPTION || 'Action for Merged PR'}} | |
needs: | |
- test | |
slack_notify: | |
needs: | |
- build_ios | |
- build_android | |
name: Create changelog | |
uses: ./.github/workflows/slack-notify.yml | |
secrets: inherit | |
with: | |
BUILD_DESCRIPTION: ${{inputs.BUILD_DESCRIPTION || github.event.inputs.BUILD_DESCRIPTION || 'Action for Merged PR'}} | |
patch_build: | |
name: Patch build version | |
uses: ./.github/workflows/patch-build-versions.yml | |
secrets: inherit | |
needs: | |
- slack_notify |