Skip to content

Delivery

Delivery #48

Workflow file for this run

name: Delivery
on:
workflow_dispatch:
env:
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
GIT_USER: ${{ secrets.GIT_USER }}
GRADLE_HOME_CACHE_CLEANUP: true
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
JAVA_DISTRIBUTION: temurin
JAVA_VERSION: 17
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
jobs:
delivery-ubuntu:
name: Delivery on Ubuntu
runs-on: ubuntu-latest
strategy:
matrix:
project: [ types-internal, types, types-kotlinx-serialization ]
env:
PROJECT: ${{ matrix.project }}
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Setup Java
uses: actions/[email protected]
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
- name: Setup Gradle
uses: gradle/actions/[email protected]
with:
gradle-home-cache-cleanup: ${{ env.GRADLE_HOME_CACHE_CLEANUP }}
- name: Deliver for Kotlin/JVM
run: ./gradlew :$PROJECT:publishJvmPublicationToOSSRHRepository
- name: Deliver for Kotlin/JS
run: ./gradlew :$PROJECT:publishJsPublicationToOSSRHRepository
- name: Deliver for Linux x64 with Kotlin Native
run: ./gradlew :$PROJECT:publishLinuxPublicationToOSSRHRepository
- name: Deliver for MinGW x64 with Kotlin Native
run: |
./gradlew :$PROJECT:publishWindowsPublicationToOSSRHRepository
- name: Deliver for Kotlin Multiplatform
run: |
./gradlew \
:$PROJECT:publishKotlinMultiplatformPublicationToOSSRHRepository
delivery-macos:
name: Delivery on macOS 12
runs-on: macos-12
strategy:
matrix:
project: [ types-internal, types, types-kotlinx-serialization ]
env:
PROJECT: ${{ matrix.project }}
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Setup Java
uses: actions/[email protected]
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
- name: Setup Gradle
uses: gradle/actions/[email protected]
with:
gradle-home-cache-cleanup: ${{ env.GRADLE_HOME_CACHE_CLEANUP }}
- name: Deliver for macOS x64 with Kotlin Native
run: ./gradlew :$PROJECT:publishMacosPublicationToOSSRHRepository
- name: Deliver for macOS arm64 with Kotlin Native
run: ./gradlew :$PROJECT:publishMacosArm64PublicationToOSSRHRepository