-
Notifications
You must be signed in to change notification settings - Fork 10
133 lines (118 loc) · 4.03 KB
/
deploy.yaml
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
name: Injective list - Deploy UI
on:
workflow_dispatch:
push:
branches:
- master
jobs:
deploy:
if: ${{ github.event_name == 'workflow_dispatch' || contains(github.event.commits[0].message, 'generate json files') && !contains(github.event.commits[0].message, 'skip deploy') }}
name: "Trigger deployments"
runs-on: ubuntu-latest
permissions: write-all
env:
## Github Actions
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
SKIP_DEPLOYMENTS: ${{ secrets.SKIP_DEPLOYMENTS }}
steps:
- name: Sleep for 60s
if: ${{ env.SKIP_DEPLOYMENTS != 'true' }}
uses: juliangruber/[email protected]
with:
time: 60s
- name: Deploy mito (devnet)
if: ${{ env.SKIP_DEPLOYMENTS != 'true' }}
uses: benc-uk/[email protected]
with:
workflow: devnet.yml
ref: dev
repo: mitoFinance/mito-ui
token: "${{ secrets.GH_TOKEN }}"
- name: Deploy mito
if: ${{ env.SKIP_DEPLOYMENTS != 'true' }}
uses: benc-uk/[email protected]
with:
workflow: mainnet.yml
ref: master
repo: mitoFinance/mito-ui
token: "${{ secrets.GH_TOKEN }}"
- name: Deploy bridge (devnet)
if: ${{ env.SKIP_DEPLOYMENTS != 'true' }}
uses: benc-uk/[email protected]
with:
workflow: devnet.yml
ref: dev
repo: injectiveLabs/injective-bridge
token: "${{ secrets.GH_TOKEN }}"
- name: Deploy bridge (mainnet)
if: ${{ env.SKIP_DEPLOYMENTS != 'true' }}
uses: benc-uk/[email protected]
with:
workflow: mainnet.yml
ref: master
repo: injectiveLabs/injective-bridge
token: "${{ secrets.GH_TOKEN }}"
- name: Rebuild helix (devnet)
if: ${{ env.SKIP_DEPLOYMENTS != 'true' }}
uses: benc-uk/[email protected]
with:
workflow: devnet.yml
ref: dev
repo: injectiveLabs/injective-helix
token: "${{ secrets.GH_TOKEN }}"
- name: Rebuild helix
if: ${{ env.SKIP_DEPLOYMENTS != 'true' }}
uses: benc-uk/[email protected]
with:
workflow: mainnet.yml
ref: master
repo: injectiveLabs/injective-helix
token: "${{ secrets.GH_TOKEN }}"
- name: Deploy explorer (devnet)
if: ${{ env.SKIP_DEPLOYMENTS != 'true' }}
uses: benc-uk/[email protected]
with:
workflow: devnet.yml
ref: dev
repo: injectiveLabs/injective-explorer
token: "${{ secrets.GH_TOKEN }}"
- name: Deploy explorer
if: ${{ env.SKIP_DEPLOYMENTS != 'true' }}
uses: benc-uk/[email protected]
with:
workflow: mainnet.yaml
ref: master
repo: injectiveLabs/injective-explorer
token: "${{ secrets.GH_TOKEN }}"
- name: Rebuild hub (devnet)
if: ${{ env.SKIP_DEPLOYMENTS != 'true' }}
uses: benc-uk/[email protected]
with:
workflow: devnet.yml
ref: dev
repo: injectiveLabs/injective-hub
token: "${{ secrets.GH_TOKEN }}"
- name: Rebuild Hub
if: ${{ env.SKIP_DEPLOYMENTS != 'true' }}
uses: benc-uk/[email protected]
with:
workflow: mainnet.yml
ref: master
repo: injectiveLabs/injective-hub
token: "${{ secrets.GH_TOKEN }}"
- name: Deploy OLP (mainnet)
if: ${{ env.SKIP_DEPLOYMENTS != 'true' }}
uses: benc-uk/[email protected]
with:
workflow: mainnet.yml
ref: master
repo: injectiveLabs/injective-dmm-v2
token: "${{ secrets.GH_TOKEN }}"
- name: Deploy Admin UI (mainnet)
if: ${{ env.SKIP_DEPLOYMENTS != 'true' }}
uses: benc-uk/[email protected]
with:
workflow: mainnet.yml
ref: master
repo: injectiveLabs/injective-admin-ui
token: "${{ secrets.GH_TOKEN }}"