-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (54 loc) · 1.86 KB
/
merge-to-main.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
name: merge-to-main
on:
push:
branches: [ "main" ]
workflow_dispatch:
env:
APOLLO_KEY: ${{ secrets.APOLLO_KEY }}
APOLLO_VCS_COMMIT: ${{ github.event.pull_request.head.sha }}
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
deploy-monolith:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Deploy to fly
run: flyctl deploy --remote-only
subgraph-accounts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: apollosolutions/rover-actions/install-rover-cli@v1
- name: Publish README
run: rover readme publish apollo-financial-supergraph@prod --file README.md
- name: Publish accounts schema
working-directory: ./subgraphs/accounts
run: |
rover subgraph publish apollo-financial-supergraph@prod \
--name accounts \
--schema schema.graphql
- name: Publish credit schema
working-directory: ./subgraphs/credit
run: |
rover subgraph publish apollo-financial-supergraph@prod \
--name credit \
--schema schema.graphql
- name: Publish risk schema
working-directory: ./subgraphs/risk
run: |
rover subgraph publish apollo-financial-supergraph@prod \
--name risk \
--schema schema.graphql
- name: Publish transactions schema
working-directory: ./subgraphs/transactions
run: |
rover subgraph publish apollo-financial-supergraph@prod \
--name transactions \
--schema schema.graphql
- name: Publish users schema
working-directory: ./subgraphs/users
run: |
rover subgraph publish apollo-financial-supergraph@prod \
--name users \
--schema schema.graphql