-
-
Notifications
You must be signed in to change notification settings - Fork 16
45 lines (42 loc) · 1.12 KB
/
deploy.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
name: Node.js CI - Root
on:
release:
types:
- created
jobs:
build-dev:
runs-on: ubuntu-latest
if: github.event.release.prerelease == true
strategy:
matrix:
microapps: [
"WEBHOOK_ROOT_DEV",
"WEBHOOK_SYLLABUS_DEV",
"WEBHOOK_CAREER_DEV",
# "WEBHOOK_CAMPUS_DEV",
# "WEBHOOK_FEEDS_DEV",
"WEBHOOK_FORUMS_DEV",
]
env:
url: ${{ secrets[matrix.microapps] }}
steps:
- name: Deploy staging
run: curl -X POST -d {} "${{ env.url }}" -H "Content-Type:application/json"
build-prod:
runs-on: ubuntu-latest
if: github.event.release.prerelease != true
strategy:
matrix:
microapps: [
"WEBHOOK_ROOT_PROD",
"WEBHOOK_SYLLABUS_PROD",
"WEBHOOK_CAREER_PROD",
# "WEBHOOK_CAMPUS_PROD",
# "WEBHOOK_FEEDS_PROD",
"WEBHOOK_FORUMS_PROD",
]
env:
url: ${{ secrets[matrix.microapps] }}
steps:
- name: Deploy production
run: curl -X POST -d {} "${{ env.url }}" -H "Content-Type:application/json"