Skip to content
This repository was archived by the owner on Jul 23, 2024. It is now read-only.

Commit cf6a867

Browse files
Publish subgraph github actions
1 parent 5714ca4 commit cf6a867

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/schema.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ on:
55
pull_request:
66

77
jobs:
8-
generate_schema:
8+
generate_and_publish_schema:
99
# Deduplicate jobs from pull requests and branch pushes within the same repo.
1010
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
1111
strategy:
1212
matrix:
1313
service:
14+
- compound_library
15+
- compound_soaking
16+
- crystal_library
1417
- soakdb_sync
1518
- pin_packing
1619
- targeting
@@ -43,3 +46,13 @@ jobs:
4346
with:
4447
name: ${{ matrix.service }}.graphql
4548
path: ${{ matrix.service }}.graphql
49+
50+
- name: publish subgraph
51+
uses: danielsinclair/rover-setup@v1
52+
with:
53+
args: subgraph publish xchemlab@current
54+
--routing-url http://${{ matrix.service }}:80
55+
--schema ${{ matrix.service }}.graphql
56+
--name ${{ matrix.service }}
57+
env:
58+
APOLLO_KEY: ${{ secrets.APOLLO_KEY }}

0 commit comments

Comments
 (0)