-
Notifications
You must be signed in to change notification settings - Fork 23
106 lines (89 loc) · 2.79 KB
/
prod_release_cocoapod.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: Cocoapod prod release
on:
release:
types: [published]
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
TAG: ${{ github.event.release.tag_name }}
jobs:
release-cocoapod-gRPC-Core:
runs-on: macos-12
steps:
- name: Repo checkout
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Prepare environment
run: scripts/prepare_env.sh
- name: Pod release
run: scripts/release_cocoapod.sh gRPC-Core.podspec
- name: Wait for pod avaialble
run: |
version=${TAG#v}
timeout 1h scripts/wait_for_pod_release.sh gRPC-Core $version
release-cocoapod-gRPC-Cpp:
runs-on: macos-12
needs: [release-cocoapod-gRPC-Core]
steps:
- name: Repo checkout
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Prepare environment
run: scripts/prepare_env.sh
- name: Pod release
run: scripts/release_cocoapod.sh gRPC-C++.podspec
- name: Wait for pod avaialble
run: |
version=${TAG#v}
timeout 1h scripts/wait_for_pod_release.sh gRPC-C++ $version
release-cocoapod-gRPC-RxLibrary:
runs-on: macos-12
steps:
- name: Repo checkout
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Prepare environment
run: scripts/prepare_env.sh
- name: Pod release
run: scripts/release_cocoapod.sh gRPC-RxLibrary.podspec
- name: Wait for pod avaialble
run: |
version=${TAG#v}
timeout 1h scripts/wait_for_pod_release.sh gRPC-RxLibrary $version
release-cocoapod-gRPC:
runs-on: macos-12
needs: [release-cocoapod-gRPC-RxLibrary, release-cocoapod-gRPC-Core]
steps:
- name: Repo checkout
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Prepare environment
run: scripts/prepare_env.sh
- name: Pod release
run: scripts/release_cocoapod.sh gRPC.podspec
- name: Wait for pod avaialble
run: |
version=${TAG#v}
timeout 1h scripts/wait_for_pod_release.sh gRPC $version
release-cocoapod-gRPC-ProtoRPC:
runs-on: macos-12
needs: [release-cocoapod-gRPC-RxLibrary, release-cocoapod-gRPC]
steps:
- name: Repo checkout
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Prepare environment
run: scripts/prepare_env.sh
- name: Pod release
run: scripts/release_cocoapod.sh gRPC-ProtoRPC.podspec
- name: Wait for pod avaialble
run: |
version=${TAG#v}
timeout 1h scripts/wait_for_pod_release.sh gRPC-ProtoRPC $version