generated from PSchmiedmayer/ContinousDelivery
-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.19 KB
/
beta-deployment.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
#
# This source file is part of the StanfordBDHG Template Application project
#
# SPDX-FileCopyrightText: 2023 Stanford University
#
# SPDX-License-Identifier: MIT
#
name: Beta Deployment
on:
push:
branches:
- main
workflow_dispatch:
jobs:
# buildandtest:
# name: Build and Test
# uses: ./.github/workflows/build-and-test.yml
iosapptestflightdeployment:
name: iOS App TestFlight Deployment
# needs: buildandtest
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@provisioningProfile
secrets: inherit
with:
runsonlabels: '["macOS", "self-hosted"]'
artifactname: TemplateApplication.xcresult
setupsigning: true
customcommand: |
# Import watchOS provisioning profile
PP_WATCHOS_PATH=$RUNNER_TEMP/build_pp_watchos.mobileprovision
echo -n {{ secrets.BUILD_PROVISION_PROFILE_WATCHOS_BASE64 }} | base64 --decode -o $PP_WATCHOS_PATH
sleep 300
WATCHOS_UUID=`grep UUID -A1 -a $PP_WATCHOS_PATH | grep -io "[-A-F0-9]\{36\}"`
sleep 30
cp $PP_WATCHOS_PATH ~/Library/MobileDevice/Provisioning\ Profiles/$WATCHOS_UUID.mobileprovision
sleep 30
fastlane beta