Skip to content

Commit 63535f5

Browse files
Merge two iOS workflows into one
1 parent 6ba2926 commit 63535f5

File tree

3 files changed

+32
-93
lines changed

3 files changed

+32
-93
lines changed

.github/workflows/ios-app-build-manual.yaml

-89
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Trigger iOS build
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
trigger:
8+
name: Trigger new iOS build
9+
environment: 'es-fastlane-match'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Trigger new build
13+
run: |
14+
curl -v \
15+
https://api.github.com/repos/eclipsesource/tabris-remote-app/actions/workflows/ios-app-build.yaml/dispatches \
16+
-H 'Accept: application/vnd.github.v3+json' \
17+
-H 'Content-Type: application/json' \
18+
-H "Authorization: token ${{ secrets.ES_GITHUB_TOKEN }}" \
19+
-H 'cache-control: no-cache' \
20+
-d "{
21+
\"ref\": \"${{ github.ref }}\",
22+
\"inputs\": { \"build_type\": \"release\" }
23+
}"

.github/workflows/ios-app-build.yaml

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
name: Build iOS app
22

33
on:
4-
push:
4+
workflow_dispatch:
5+
inputs:
6+
build_type:
7+
description: '`debug` or `release`'
8+
required: true
9+
default: 'debug'
510

611
jobs:
712
build-ios:
@@ -12,9 +17,9 @@ jobs:
1217

1318
- name: Install the Apple certificate and provisioning profile
1419
env:
15-
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
20+
BUILD_CERTIFICATE_BASE64: ${{ github.event.inputs.build_type == 'release' && secrets.RELEASE_BUILD_CERTIFICATE_BASE64 || secrets.BUILD_CERTIFICATE_BASE64 }}
1621
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
17-
BUILD_PROVISION_PROFILE_BASE64: ${{ secrets.BUILD_PROVISION_PROFILE_BASE64 }}
22+
BUILD_PROVISION_PROFILE_BASE64: ${{ github.event.inputs.build_type == 'release' && secrets.RELEASE_BUILD_PROVISION_PROFILE_BASE64 || secrets.BUILD_PROVISION_PROFILE_BASE64 }}
1823
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
1924
run: |
2025
# create variables
@@ -58,7 +63,7 @@ jobs:
5863
env:
5964
TABRIS_BUILD_KEY: ${{ secrets.TABRIS_IOS_BUILD_KEY }}
6065
run: |
61-
tabris build ios --debug --device --verbose
66+
tabris build ios --${{ github.event.inputs.build_type }} --device --verbose
6267
6368
- name: Prepare artifacts for archival
6469
run: |

0 commit comments

Comments
 (0)