File tree 3 files changed +32
-93
lines changed
3 files changed +32
-93
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
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
+ }"
Original file line number Diff line number Diff line change 1
1
name : Build iOS app
2
2
3
3
on :
4
- push :
4
+ workflow_dispatch :
5
+ inputs :
6
+ build_type :
7
+ description : ' `debug` or `release`'
8
+ required : true
9
+ default : ' debug'
5
10
6
11
jobs :
7
12
build-ios :
12
17
13
18
- name : Install the Apple certificate and provisioning profile
14
19
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 }}
16
21
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 }}
18
23
KEYCHAIN_PASSWORD : ${{ secrets.KEYCHAIN_PASSWORD }}
19
24
run : |
20
25
# create variables
58
63
env :
59
64
TABRIS_BUILD_KEY : ${{ secrets.TABRIS_IOS_BUILD_KEY }}
60
65
run : |
61
- tabris build ios --debug --device --verbose
66
+ tabris build ios --${{ github.event.inputs.build_type }} --device --verbose
62
67
63
68
- name : Prepare artifacts for archival
64
69
run : |
You can’t perform that action at this time.
0 commit comments