Skip to content

Commit

Permalink
Merge two iOS workflows into one
Browse files Browse the repository at this point in the history
  • Loading branch information
karolszafranski committed Dec 23, 2024
1 parent 6ba2926 commit 63535f5
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 93 deletions.
89 changes: 0 additions & 89 deletions .github/workflows/ios-app-build-manual.yaml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/ios-app-build-on-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Trigger iOS build

on:
push:

jobs:
trigger:
name: Trigger new iOS build
environment: 'es-fastlane-match'
runs-on: ubuntu-latest
steps:
- name: Trigger new build
run: |
curl -v \
https://api.github.com/repos/eclipsesource/tabris-remote-app/actions/workflows/ios-app-build.yaml/dispatches \
-H 'Accept: application/vnd.github.v3+json' \
-H 'Content-Type: application/json' \
-H "Authorization: token ${{ secrets.ES_GITHUB_TOKEN }}" \
-H 'cache-control: no-cache' \
-d "{
\"ref\": \"${{ github.ref }}\",
\"inputs\": { \"build_type\": \"release\" }
}"
13 changes: 9 additions & 4 deletions .github/workflows/ios-app-build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: Build iOS app

on:
push:
workflow_dispatch:
inputs:
build_type:
description: '`debug` or `release`'
required: true
default: 'debug'

jobs:
build-ios:
Expand All @@ -12,9 +17,9 @@ jobs:

- name: Install the Apple certificate and provisioning profile
env:
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
BUILD_CERTIFICATE_BASE64: ${{ github.event.inputs.build_type == 'release' && secrets.RELEASE_BUILD_CERTIFICATE_BASE64 || secrets.BUILD_CERTIFICATE_BASE64 }}
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
BUILD_PROVISION_PROFILE_BASE64: ${{ secrets.BUILD_PROVISION_PROFILE_BASE64 }}
BUILD_PROVISION_PROFILE_BASE64: ${{ github.event.inputs.build_type == 'release' && secrets.RELEASE_BUILD_PROVISION_PROFILE_BASE64 || secrets.BUILD_PROVISION_PROFILE_BASE64 }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
run: |
# create variables
Expand Down Expand Up @@ -58,7 +63,7 @@ jobs:
env:
TABRIS_BUILD_KEY: ${{ secrets.TABRIS_IOS_BUILD_KEY }}
run: |
tabris build ios --debug --device --verbose
tabris build ios --${{ github.event.inputs.build_type }} --device --verbose
- name: Prepare artifacts for archival
run: |
Expand Down

0 comments on commit 63535f5

Please sign in to comment.