Skip to content

feat(sdk): add CD to kotlin SDK #1

feat(sdk): add CD to kotlin SDK

feat(sdk): add CD to kotlin SDK #1

name: Release
on:
pull_request:
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Build library
run: ./gradlew :TopsortAnalytics:compileReleaseKotlin
publishToMaven:
environment:
name: "MavenCentral"
needs: build
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Upload library
run: ./gradlew :TopsortAnalytics:publishAndReleaseToMavenCentral
env:
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_IN_MEMORY_KEY_WRONG }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_IN_MEMORY_KEY_PASSWORD }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_USERNAME_WRONG }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_PASSWORD }}