Skip to content

Commit

Permalink
feat: add auto graphql sdk generator action
Browse files Browse the repository at this point in the history
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
  • Loading branch information
Abirdcfly committed Nov 30, 2023
1 parent 7cd9207 commit ab9558a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/graphql_sdk_generate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Generate Graphql JS SDK

on:
push:
branches: [main]
paths:
- 'graphql-server/go-server/graph/schema/**'
workflow_dispatch:

jobs:
image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: make sdk
run: |
make gql-sdk-generator
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ run-graphql-server:
GRL_SDK_GENERATOR_IMAGE ?= kubebb/gql-sdk-generator
.PHONY: gql-sdk-generator
gql-sdk-generator: run-graphql-server
docker run -v $(shell pwd)/graphql-server/go-server/graph/schema:/schema ${GRL_SDK_GENERATOR_IMAGE}:main
docker run --env SDK_PACKAGE_NAME=@yuntijs/arcadia-bff-sdk --env SDK_YUNTI_NAME=ArcadiaBffSDK -v $(shell pwd)/graphql-server/go-server/graph/schema:/schema ${GRL_SDK_GENERATOR_IMAGE}:main


# prepare for git push
Expand Down

0 comments on commit ab9558a

Please sign in to comment.