-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (74 loc) · 2.73 KB
/
ci-fastlane-release_beta_internal.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Leka - iOS Monorepo
# Copyright 2023 APF France handicap
# SPDX-License-Identifier: Apache-2.0
name: Fastlane - Internal Beta Release
on:
pull_request:
types: [labeled]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
TUIST_TURN_OFF_LINTERS: TRUE
APP_STORE_CONNECT_API_KEY_CONTENT: ${{ secrets. APP_STORE_CONNECT_API_KEY_CONTENT }}
APP_STORE_CONNECT_ISSUER_ID: ${{ secrets. APP_STORE_CONNECT_ISSUER_ID }}
APP_STORE_CONNECT_API_KEY_ID: ${{ secrets. APP_STORE_CONNECT_API_KEY_ID }}
FASTLANE_KEYCHAIN_PASSWORD: ${{ secrets.FASTLANE_KEYCHAIN_PASSWORD }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
jobs:
internal_beta_release:
if: contains(github.event.label.name, 'fastlane:rbi')
name: fastlane release beta_internal
runs-on: [self-hosted, iOS]
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
FASTLANE_SKIP_UPDATE_CHECK: 1
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1 # shallow clone
- name: bundle install
run: |
bundle install
- name: tuist fetch
run: |
tuist fetch
- name: fastlane helloworld
run: |
bundle exec fastlane helloworld
- name: fastlane sync_certificates
run: |
bundle exec fastlane sync_certificates release:true --verbose
- name: fastlane beta_internal LekaApp
if: contains(github.event.label.name, 'LekaApp')
run: |
bundle exec fastlane beta_internal targets:LekaApp --verbose
- name: fastlane beta_internal LekaActivityUIExplorer
if: contains(github.event.label.name, 'LekaActivityUIExplorer')
run: |
bundle exec fastlane beta_internal targets:LekaActivityUIExplorer --verbose
- name: fastlane beta_internal LekaUpdater
if: contains(github.event.label.name, 'LekaUpdater')
run: |
bundle exec fastlane beta_internal targets:LekaUpdater --verbose
- name: fastlane beta_internal all
if: contains(github.event.label.name, 'all')
run: |
bundle exec fastlane beta_internal targets:all --verbose
- name: remove label
if: always()
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const { LABEL_NAME } = process.env
github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: LABEL_NAME
})
env:
LABEL_NAME: ${{ github.event.label.name }}