|
35 | 35 | - check |
36 | 36 | env: |
37 | 37 | CRATES_PUBLISH_JSON: ${{ needs.check.outputs.crates_to_publish }} |
38 | | - PUBLISH_CONFIG_CRATE: ${{ contains(needs.check.outputs.crates_to_publish, '"hive-router-config"') }} |
39 | | - PUBLISH_INTERNAL_CRATE: ${{ contains(needs.check.outputs.crates_to_publish, '"hive-router-internal"') }} |
40 | | - PUBLISH_QUERY_PLANNER_CRATE: ${{ contains(needs.check.outputs.crates_to_publish, '"hive-router-query-planner"') }} |
41 | | - PUBLISH_EXECUTOR_CRATE: ${{ contains(needs.check.outputs.crates_to_publish, '"hive-router-plan-executor"') }} |
42 | 38 | PUBLISH_ROUTER_CRATE: ${{ contains(needs.check.outputs.crates_to_publish, '"hive-router"') }} |
43 | 39 | PUBLISH_GRAPHQL_TOOLS_CRATE: ${{ contains(needs.check.outputs.crates_to_publish, '"graphql-tools"') }} |
44 | 40 | PUBLISH_CONSOLE_SDK_CRATE: ${{ contains(needs.check.outputs.crates_to_publish, '"hive-console-sdk"') }} |
|
82 | 78 | run: | |
83 | 79 | cargo publish --manifest-path ${{ fromJson(needs.check.outputs.crates_to_publish).hive-apollo-router-plugin }} |
84 | 80 |
|
85 | | - - name: publish config lib |
86 | | - if: env.PUBLISH_CONFIG_CRATE == 'true' |
87 | | - env: |
88 | | - CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} |
89 | | - run: | |
90 | | - cargo publish --manifest-path ${{ fromJson(needs.check.outputs.crates_to_publish).hive-router-config }} |
91 | | -
|
92 | | - - name: publish internal lib |
93 | | - if: env.PUBLISH_INTERNAL_CRATE == 'true' |
94 | | - env: |
95 | | - CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} |
96 | | - run: | |
97 | | - cargo publish --manifest-path ${{ fromJson(needs.check.outputs.crates_to_publish).hive-router-internal }} |
98 | | -
|
99 | | - - name: publish query-planner lib |
100 | | - if: env.PUBLISH_QUERY_PLANNER_CRATE == 'true' |
101 | | - env: |
102 | | - CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} |
103 | | - run: | |
104 | | - cargo publish --manifest-path ${{ fromJson(needs.check.outputs.crates_to_publish).hive-router-query-planner }} |
105 | | -
|
106 | | - - name: publish executor lib |
107 | | - if: env.PUBLISH_EXECUTOR_CRATE == 'true' |
108 | | - env: |
109 | | - CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} |
110 | | - run: | |
111 | | - cargo publish --manifest-path ${{ fromJson(needs.check.outputs.crates_to_publish).hive-router-plan-executor }} |
112 | | -
|
113 | 81 | - name: publish router lib |
114 | 82 | if: env.PUBLISH_ROUTER_CRATE == 'true' |
115 | 83 | env: |
|
0 commit comments