forked from aragon/connect
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.08 KB
/
voting-subgraph-ci-cd.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
name: Connect Voting Subgraph CI/CD
on:
push:
paths:
- 'packages/connect-voting/subgraph/**'
branches:
- master
- develop
env:
GRAPHKEY: ${{secrets.GRAPHKEY}}
working-directory: packages/connect-voting/subgraph
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{env.working-directory}}
steps:
- uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 14.15.5
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Cache yarn modules
uses: actions/cache@v2
with:
path: '**/node_modules'
key: yarn-${{ hashFiles('yarn.lock') }}
- name: Deploy rinkeby
if: github.ref == 'refs/heads/develop'
run: yarn deploy-rinkeby
- name: Deploy rinkeby staging
if: github.ref == 'refs/heads/develop'
run: yarn deploy-rinkeby-staging
- name: Deploy mainnet
if: github.ref == 'refs/heads/master'
run: yarn deploy-mainnet