-
Notifications
You must be signed in to change notification settings - Fork 21
54 lines (50 loc) · 1.52 KB
/
testflight.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Test Flight Deploy DemoApp
on:
# TODO: commented until `develop` branch is in place
# pull_request:
# branches:
# - 'main'
release:
types: [published]
workflow_dispatch:
inputs:
release:
description: 'Build configuration'
required: true
default: 'Debug'
type: choice
options:
- Debug
- Release
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
jobs:
deploy:
runs-on: macos-14
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
APPSTORE_API_KEY: ${{ secrets.APPSTORE_API_KEY }}
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PR_NUM: ${{ github.event.number }}
steps:
- name: Install Bot SSH Key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }}
- uses: actions/[email protected]
- uses: ./.github/actions/ruby-cache
- uses: ./.github/actions/xcode-cache
- if: ${{ github.event.inputs.release }} == 'Debug'
run: brew install imagemagick
- run: bundle exec fastlane swiftui_testflight_build configuration:"${{ github.event.inputs.release }}"
timeout-minutes: 40
- uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
text: "You shall not pass!"
fields: message,commit,author,action,workflow,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
MATRIX_CONTEXT: ${{ toJson(matrix) }}
if: failure()