console/.github/workflows/graphql-schema-publish.yaml

28 lines
659 B
YAML

on:
workflow_call:
secrets:
hiveToken:
required: true
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 2
- name: setup environment
uses: ./.github/actions/setup
with:
actor: graphql-schema-publish
- name: schema publish
env:
HIVE_TOKEN: ${{ secrets.hiveToken }}
run: |
curl -sSL https://graphql-hive.com/install.sh | sh
hive schema:publish "schema.graphql" \
--github \
--service "graphql"