Skip to content

Commit

Permalink
Add deploy-schema.yml
Browse files Browse the repository at this point in the history
skip-checks: true
  • Loading branch information
sjohnr committed Dec 4, 2023
1 parent 146ceb8 commit a55dd25
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/deploy-schema.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Deploy Docs

on:
workflow_call:
inputs:
should-deploy-schema:
description: Whether schema files should be deployed.
required: true
type: string
outputs:
schema-deployed:
description: Whether schema files were actually deployed.
value: ${{ jobs.deploy-schema.outputs.docs-deployed }}
secrets:
GRADLE_ENTERPRISE_CACHE_USER:
required: false
GRADLE_ENTERPRISE_CACHE_PASSWORD:
required: false
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY:
required: false
DOCS_USERNAME:
required: false
DOCS_SSH_KEY:
required: false
DOCS_HOST:
required: false

env:
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
DOCS_USERNAME: ${{ secrets.DOCS_USERNAME }}
DOCS_SSH_KEY: ${{ secrets.DOCS_SSH_KEY }}
DOCS_HOST: ${{ secrets.DOCS_HOST }}

jobs:
deploy-schema:
name: Deploy Schema
if: ${{ inputs.should-deploy-schema == 'true' }}
runs-on: ubuntu-latest
outputs:
schema-deployed: ${{ steps.schema-deployed.outputs.result }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: spring-io/spring-gradle-build-action@v2
- name: Deploy Schema
run: ./gradlew deploySchema -PdeployDocsSshKey="$DOCS_SSH_KEY" -PdeployDocsSshUsername="$DOCS_USERNAME" -PdeployDocsHost="$DOCS_HOST" --stacktrace --info
- id: schema-deployed
name: Schema Deployed
run: echo "result=true" >> $GITHUB_OUTPUT

0 comments on commit a55dd25

Please sign in to comment.