-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.workflow
256 lines (223 loc) · 7.21 KB
/
main.workflow
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
workflow "Build and Deploy ChangeCast" {
resolves = [
"Alias Now Deployment",
"Deploy with Netlify",
]
on = "release"
}
action "Build" {
uses = "./"
secrets = ["GITHUB_TOKEN"]
env = {
DEPLOY_URL = "https://changecast-log.now.sh"
}
}
action "Deploy with Netlify" {
needs = "Build"
uses = "netlify/actions/cli@master"
args = "deploy --dir=./changecast --site=061cc43b-d700-492c-9e3d-3d92f6d197aa --prod"
secrets = [
"NETLIFY_AUTH_TOKEN",
]
}
action "Deploy with Now" {
uses = "actions/zeit-now@1.0.0"
needs = ["Build"]
args = "--public --no-clipboard --scope=palmer deploy ./changecast > $GITHUB_WORKSPACE/deploy.txt"
secrets = ["ZEIT_TOKEN"]
}
action "Alias Now Deployment" {
uses = "actions/zeit-now@1.0.0"
args = "alias `cat $GITHUB_WORKSPACE/deploy.txt` changecast-log"
secrets = [
"ZEIT_TOKEN",
]
needs = ["Deploy with Now"]
}
workflow "Run Chronicler" {
on = "pull_request"
resolves = ["Chronicler"]
}
action "Chronicler" {
uses = "crosscompile/chronicler-action@v1.0.1"
secrets = ["GITHUB_TOKEN"]
}
workflow "Build and Deploy Docs Preview" {
resolves = [
"Alias Material UI Preview",
"Alias React Beautiful DnD Preview",
"Alias Workbox Preview",
"Alias Docs Preview",
]
on = "pull_request"
}
action "Build React Beautiful DnD ChangeCast Preview" {
uses = "./"
secrets = ["GITHUB_TOKEN"]
args = "DEPLOY_URL=https://changecast-1-$GITHUB_SHA.now.sh"
env = {
REPO_URL = "https://github.com/atlassian/react-beautiful-dnd"
}
}
action "Deploy React Beautiful DnD Preview" {
uses = "actions/zeit-now@1.0.0"
args = "--public --no-clipboard --scope=palmer deploy ./changecast > $GITHUB_WORKSPACE/deploy.txt"
secrets = ["ZEIT_TOKEN"]
needs = ["Build React Beautiful DnD ChangeCast Preview"]
}
action "Alias React Beautiful DnD Preview" {
uses = "actions/zeit-now@1.0.0"
args = "alias --scope=palmer `cat $GITHUB_WORKSPACE/deploy.txt` changecast-1-$GITHUB_SHA"
secrets = ["ZEIT_TOKEN"]
needs = ["Deploy React Beautiful DnD Preview"]
}
action "Build Material UI ChangeCast Preview" {
uses = "./"
args = "DEPLOY_URL=https://changecast-2-$GITHUB_SHA.now.sh"
secrets = ["GITHUB_TOKEN"]
env = {
REPO_URL = "https://github.com/mui-org/material-ui"
}
}
action "Deploy Material UI Preview" {
uses = "actions/zeit-now@1.0.0"
secrets = ["ZEIT_TOKEN"]
args = "--public --no-clipboard --scope=palmer deploy ./changecast > $GITHUB_WORKSPACE/deploy.txt"
needs = ["Build Material UI ChangeCast Preview"]
}
action "Alias Material UI Preview" {
uses = "actions/zeit-now@1.0.0"
args = "alias --scope=palmer `cat $GITHUB_WORKSPACE/deploy.txt` changecast-2-$GITHUB_SHA"
secrets = ["ZEIT_TOKEN"]
needs = ["Deploy Material UI Preview"]
}
action "Build Workbox ChangeCast Preview" {
uses = "./"
args = "DEPLOY_URL=https://changecast-3-$GITHUB_SHA.now.sh"
secrets = ["GITHUB_TOKEN"]
env = {
REPO_URL = "https://github.com/GoogleChrome/workbox"
}
}
action "Deploy Workbox Preview" {
uses = "actions/zeit-now@1.0.0"
args = "--public --no-clipboard --scope=palmer deploy ./changecast > $GITHUB_WORKSPACE/deploy.txt"
secrets = ["ZEIT_TOKEN"]
needs = ["Build Workbox ChangeCast Preview"]
}
action "Alias Workbox Preview" {
uses = "actions/zeit-now@1.0.0"
secrets = ["ZEIT_TOKEN"]
args = "alias --scope=palmer `cat $GITHUB_WORKSPACE/deploy.txt` changecast-3-$GITHUB_SHA"
needs = ["Deploy Workbox Preview"]
}
action "Install and Build Docs Preview" {
uses = "nuxt/actions-yarn@master"
args = "install && FIRST_EXAMPLE_URL=https://changecast-1-$GITHUB_SHA.now.sh SECOND_EXAMPLE_URL=https://changecast-2-$GITHUB_SHA.now.sh THIRD_EXAMPLE_URL=https://changecast-3-$GITHUB_SHA.now.sh yarn build:docs"
}
action "Deploy Docs Preview" {
uses = "actions/zeit-now@1.0.0"
args = "--public --no-clipboard --scope=palmer deploy ./docs/public --local-config=../now.json > $GITHUB_WORKSPACE/deploy.txt"
secrets = ["ZEIT_TOKEN"]
needs = ["Install and Build Docs Preview"]
}
action "Alias Docs Preview" {
uses = "actions/zeit-now@5c51b26db987d15a0133e4c760924896b4f1512f"
secrets = ["ZEIT_TOKEN"]
args = "alias --scope=palmer `cat $GITHUB_WORKSPACE/deploy.txt` changecast-$GITHUB_SHA"
needs = ["Deploy Docs Preview"]
}
workflow "Build and Deploy Docs" {
resolves = [
"Alias Material UI",
"Alias Workbox",
"Alias React Beautiful Dnd",
"Alias Docs",
]
on = "push"
}
action "Filter master" {
uses = "actions/bin/filter@master"
args = "branch master"
}
action "Build React Beautiful DnD ChangeCast" {
uses = "./"
secrets = ["GITHUB_TOKEN"]
env = {
REPO_URL = "https://github.com/atlassian/react-beautiful-dnd"
DEPLOY_URL = "https://changecast-1.now.sh"
}
needs = ["Filter master"]
}
action "Deploy React Beautiful DnD" {
uses = "actions/zeit-now@1.0.0"
args = "--public --no-clipboard --scope=palmer deploy ./changecast > $GITHUB_WORKSPACE/deploy.txt"
secrets = ["ZEIT_TOKEN"]
needs = ["Build React Beautiful DnD ChangeCast"]
}
action "Alias React Beautiful Dnd" {
uses = "actions/zeit-now@1.0.0"
args = "alias --scope=palmer `cat $GITHUB_WORKSPACE/deploy.txt` changecast-1"
secrets = ["ZEIT_TOKEN"]
needs = ["Deploy React Beautiful DnD"]
}
action "Build Material UI ChangeCast" {
uses = "./"
args = "GITHUB_REPO_URL="
secrets = ["GITHUB_TOKEN"]
env = {
REPO_URL = "https://github.com/mui-org/material-ui"
DEPLOY_URL = "https://changecast-2.now.sh"
}
needs = ["Filter master"]
}
action "Deploy Material UI" {
uses = "actions/zeit-now@1.0.0"
secrets = ["ZEIT_TOKEN"]
args = "--public --no-clipboard --scope=palmer deploy ./changecast > $GITHUB_WORKSPACE/deploy.txt"
needs = ["Build Material UI ChangeCast"]
}
action "Alias Material UI" {
uses = "actions/zeit-now@1.0.0"
args = "alias --scope=palmer `cat $GITHUB_WORKSPACE/deploy.txt` changecast-2"
secrets = ["ZEIT_TOKEN"]
needs = ["Deploy Material UI"]
}
action "Build Workbox ChangeCast" {
uses = "./"
secrets = ["GITHUB_TOKEN"]
env = {
REPO_URL = "https://github.com/GoogleChrome/workbox"
DEPLOY_URL = "https://changecast-3.now.sh"
}
needs = ["Filter master"]
}
action "Deploy Workbox" {
uses = "actions/zeit-now@1.0.0"
args = "--public --no-clipboard --scope=palmer deploy ./changecast > $GITHUB_WORKSPACE/deploy.txt"
secrets = ["ZEIT_TOKEN"]
needs = ["Build Workbox ChangeCast"]
}
action "Alias Workbox" {
uses = "actions/zeit-now@1.0.0"
secrets = ["ZEIT_TOKEN"]
args = "alias --scope=palmer `cat $GITHUB_WORKSPACE/deploy.txt` changecast-3"
needs = ["Deploy Workbox"]
}
action "Install and Build Docs" {
uses = "nuxt/actions-yarn@master"
args = "install && FIRST_EXAMPLE_URL=https://changecast-1.now.sh SECOND_EXAMPLE_URL=https://changecast-2.now.sh THIRD_EXAMPLE_URL=https://changecast-3.now.sh yarn build:docs"
needs = ["Filter master"]
}
action "Deploy Docs" {
uses = "actions/zeit-now@1.0.0"
args = "--public --no-clipboard --scope=palmer deploy ./docs/public --local-config=../now.json > $GITHUB_WORKSPACE/deploy.txt"
secrets = ["ZEIT_TOKEN"]
needs = ["Install and Build Docs"]
}
action "Alias Docs" {
uses = "actions/zeit-now@5c51b26db987d15a0133e4c760924896b4f1512f"
secrets = ["ZEIT_TOKEN"]
args = "alias --scope=palmer `cat $GITHUB_WORKSPACE/deploy.txt` changecast"
needs = ["Deploy Docs"]
}