Skip to content

Workflow file for this run

name: CD | Publish library to Maven Central
on:
release:
types: [ released ]
workflow_dispatch:
jobs:
publish:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: adopt
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Assemble lib
run: ./gradlew :compose-shadow:assemble --scan
- name: Publish to MavenCentral
run: ./gradlew :compose-shadow:publishAllPublicationsToMavenCentral --no-configuration-cache
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}