-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (73 loc) · 2.75 KB
/
conferenceapp.yaml
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
name: Conference App CI
on:
pull_request:
branches:
- dev
paths:
- 'packages/conferenceapp/**'
workflow_dispatch:
inputs:
release-type:
description: 'Type of release'
required: true
type: choice
options:
- build
- patch
default: patch
changelog:
description: 'Changelog for this release'
required: false
build-version:
description: 'Version number for the release'
required: false
default: '1.0.0'
type: string
build-number:
required: false
default: '1'
type: string
jobs:
check-formatting:
if: github.event_name == 'pull_request'
uses: ./.github/workflows/shared-workflow.yaml
with:
package-name: conferenceapp
android-build:
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs['release-type'] == 'build' }}
uses: ./.github/workflows/shared-workflow.yaml
with:
package-name: conferenceapp
android-build: ${{ github.event.inputs['release-type'] == 'build' }}
changelog: ${{ github.event.inputs['changelog'] }}
build-number: ${{ github.event.inputs['build-number'] }}
build-version: ${{ github.event.inputs['build-version'] }}
secrets:
CREDENTIAL_FILE_CONTENT: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }}
ios-build:
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs['release-type'] == 'build' }}
uses: ./.github/workflows/shared-workflow.yaml
with:
package-name: conferenceapp
ios-build: ${{ github.event.inputs['release-type ']== 'build' }}
changelog: ${{ github.event.inputs['changelog'] }}
build-number: ${{ github.event.inputs['build-number'] }}
build-version: ${{ github.event.inputs['build-version'] }}
secrets:
APP_STORE_CONNECT_ISSUER_ID: ${{ vars.APP_STORE_CONNECT_ISSUER_ID }}
APP_STORE_CONNECT_KEY_IDENTIFIER: ${{ vars.APP_STORE_CONNECT_KEY_IDENTIFIER }}
APP_STORE_CONNECT_PRIVATE_KEY: ${{ secrets.APP_STORE_CONNECT_PRIVATE_KEY }}
CERTIFICATE_PRIVATE_KEY: ${{ secrets.CERTIFICATE_PRIVATE_KEY }}
APP_STORE_APP_ID: ${{ vars.APP_STORE_APP_ID }}
SHOREBIRD_TOKEN: ${{ secrets.SHOREBIRD_TOKEN }}
patch-release:
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs['release-type'] == 'patch' }}
uses: ./.github/workflows/shared-workflow.yaml
with:
package-name: conferenceapp
changelog: ${{ github.event.inputs['changelog'] }}
build-version: ${{ github.event.inputs['build-version'] }}
build-number: ${{ github.event.inputs['build-number'] }}
secrets:
SHOREBIRD_TOKEN: ${{ secrets.SHOREBIRD_TOKEN }}