Skip to content

Delivery

Delivery #42

Workflow file for this run

name: Delivery
on:
workflow_dispatch:
inputs:
gradleDryRun:
description: Run with all Gradle tasks actions disabled.
required: false
type: boolean
default: false
jobs:
delivery:
name: Publish to OSSRH
runs-on: ubuntu-latest
env:
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
GIT_USER: ${{ secrets.GIT_USER }}
GRADLE_DRY_RUN: ${{ inputs.gradleDryRun == true && '--dry-run' || '' }}
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Setup Java
uses: actions/[email protected]
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/[email protected]
with:
gradle-home-cache-cleanup: true
- name: Publish 'internal' subproject
run: |
./gradlew :types-internal:publishAllPublicationsToOSSRHRepository \
$GRADLE_DRY_RUN
- name: Publish 'kotlinx-serialization' subproject
run: |
./gradlew \
:types-kotlinx-serialization:publishAllPublicationsToOSSRHRepository \
$GRADLE_DRY_RUN
- name: Publish root project
run: |
./gradlew :types:publishAllPublicationsToOSSRHRepository \
$GRADLE_DRY_RUN