Skip to content

Commit 7e13202

Browse files
authored
feat: add schema publishing to apollo studio (#1772)
1 parent d18eaf2 commit 7e13202

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish GraphQL Schema
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'api/generated-schema.graphql'
9+
10+
jobs:
11+
publish-schema:
12+
name: Publish Schema to Apollo Studio
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v5
17+
18+
- name: Install Apollo Rover CLI
19+
run: |
20+
curl -sSL https://rover.apollo.dev/nix/latest | sh
21+
echo "$HOME/.rover/bin" >> $GITHUB_PATH
22+
23+
- name: Publish schema to Apollo Studio
24+
env:
25+
APOLLO_KEY: ${{ secrets.APOLLO_KEY }}
26+
run: |
27+
rover graph publish Unraid-API@current \
28+
--schema api/generated-schema.graphql
29+

0 commit comments

Comments
 (0)