Skip to content

chore(deps): update plugin org.jetbrains.kotlin.jvm to v2.1.0 (#151) #142

chore(deps): update plugin org.jetbrains.kotlin.jvm to v2.1.0 (#151)

chore(deps): update plugin org.jetbrains.kotlin.jvm to v2.1.0 (#151) #142

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 60
env:
SCHEMA_FILE: schema.graphql
SCHEMA_ARTIFACT: schema
outputs:
schema: ${{ env.SCHEMA_FILE }}
schema_artifact: ${{ env.SCHEMA_ARTIFACT }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Java 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Execute Gradle build
run: ./gradlew clean build graphqlGenerateSDL
- name: Upload schema artifact
uses: actions/upload-artifact@v4
with:
path: build/${{ env.SCHEMA_FILE }}
name: ${{ env.SCHEMA_ARTIFACT }}
deploy:
name: Deploy Application
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Deploy
run: echo "::warning file=.github/workflows/deploy.yaml,line=43,endLine=44,title=No Deploy step defined::Define your custom workflow for deploying your subgraph here."
publish_schema:
name: Publish new schema to Apollo Studio
if: false
needs: [ deploy ]
env:
APOLLO_VCS_COMMIT: ${{ github.event.pull_request.head.sha }}
# rename this to a valid subgraph name
SUBGRAPH_NAME: foo-bar
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: ${{ needs.prepare_schema.outputs.schema_artifact }}
- name: Install Rover
run: |
curl -sSL https://rover.apollo.dev/nix/latest | sh
echo "$HOME/.rover/bin" >> $GITHUB_PATH
- name: Publish Schema
run: rover subgraph publish ${{ secrets.APOLLO_GRAPH_REF }} --schema ${{ needs.prepare_schema.outputs.schema }} --name ${{ env.SUBGRAPH_NAME }} --routing-url ${{ secrets.PRODUCTION_URL }}
env:
APOLLO_KEY: ${{ secrets.APOLLO_KEY }}