Skip to content

Workflow file for this run

# This file was generated using Kotlin DSL (.github/workflows/release.main.kts).
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/typesafegithub/github-workflows-kt
name: 'Publish Kotlin AWS CDK DSL to Maven Central'
on:
push: {}
env:
ORG_GRADLE_PROJECT_signingKey: '${{ secrets.SIGNING_KEY }}'
ORG_GRADLE_PROJECT_signingPassword: '${{ secrets.SIGNING_PASSWORD }}'
ORG_GRADLE_PROJECT_sonatypeUsername: '${{ secrets.SONATYPEUSERNAME }}'
ORG_GRADLE_PROJECT_sonatypePassword: '${{ secrets.SONATYPEPASSWORD }}'
jobs:
check_yaml_consistency:
name: 'Check YAML consistency'
runs-on: 'ubuntu-latest'
steps:
- id: 'step-0'
name: 'Check out'
uses: 'actions/checkout@v3'
- id: 'step-1'
name: 'Execute script'
run: 'rm ''.github/workflows/release.yaml'' && ''.github/workflows/release.main.kts'''
- id: 'step-2'
name: 'Consistency check'
run: 'git diff --exit-code ''.github/workflows/release.yaml'''
build:
runs-on:
- 'Large_Runner'
needs:
- 'check_yaml_consistency'
steps:
- id: 'step-0'
name: 'checkout'
uses: 'actions/checkout@v3'
- id: 'step-1'
name: 'Set up JDK'
uses: 'actions/setup-java@v3'
with:
java-version: '17'
distribution: 'corretto'
check-latest: 'true'
- id: 'step-2'
name: 'build'
uses: 'gradle/gradle-build-action@v2'
with:
gradle-version: 'wrapper'
gradle-home-cache-includes: |-
jdks
caches
notifications
arguments: 'build publishToSonatype closeAndReleaseSonatypeStagingRepository --info --stacktrace --no-configuration-cache'
gradle-home-cache-cleanup: 'true'