-
Notifications
You must be signed in to change notification settings - Fork 3
72 lines (66 loc) · 2.04 KB
/
cd.yml
File metadata and controls
72 lines (66 loc) · 2.04 KB
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
name: Create stable release
on:
workflow_dispatch:
inputs:
ticket:
description: Release ticket id for the GitHub commit (i.e. MOEN-1234)
type: string
required: true
sdk-version:
description: The SDK dependency version to update to, in the package.json
type: string
required: false
default: ''
release-cards:
description: Whether to release Cards
type: boolean
required: false
default: true
release-geofence:
description: Whether to release Geofence
type: boolean
required: false
default: true
release-inbox:
description: Whether to release Inbox
type: boolean
required: false
default: true
jobs:
release:
name: Create release
runs-on: macos-15
steps:
- name: Checkout scripts
uses: actions/checkout@v4
with:
path: scripts
repository: moengage/sdk-automation-scripts
token: ${{ secrets.SDK_BOT_ACCESS_TOKEN }}
- name: Setup dev environment
uses: ./scripts/actions/ios-action-setup
env:
SDK_BOT_ACCESS_TOKEN: ${{ secrets.SDK_BOT_ACCESS_TOKEN }}
- name: Checkout repository
uses: actions/checkout@v4
with:
path: source
token: ${{ secrets.SDK_BOT_ACCESS_TOKEN }}
fetch-depth: 0
fetch-tags: true
- name: Create release
uses: ./scripts/actions/ios-sdk-client-release
with:
dir: source
env:
SDK_BOT_ACCESS_TOKEN: ${{ secrets.SDK_BOT_ACCESS_TOKEN }}
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
MO_RELEASE_TICKET: ${{ inputs.ticket }}
MO_SDK_DEPENDENCY_VERSION: ${{ inputs.sdk-version }}
- name: Release dependents
run: ${{ github.workspace }}/source/Utilities/release_dependents.rb
working-directory: source
env:
GH_TOKEN: ${{ secrets.SDK_BOT_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.SDK_BOT_ACCESS_TOKEN }}
MO_WORKFLOW_INPUTS: ${{ toJSON(inputs) }}