We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d18eaf2 commit 7e13202Copy full SHA for 7e13202
1 file changed
.github/workflows/publish-schema.yml
@@ -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
27
+ rover graph publish Unraid-API@current \
28
+ --schema api/generated-schema.graphql
29
0 commit comments