-
Notifications
You must be signed in to change notification settings - Fork 37
82 lines (73 loc) · 2.22 KB
/
distribute.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# 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
if: ${{ github.ref == 'refs/heads/main' }}