Skip to content

0.10.1

0.10.1 #37

Workflow file for this run

# This workflow will build a package using Gradle and then publish it to Maven Central when a release is published.
name: Publish to Maven Central
on:
release:
types: [published]
jobs:
build:
runs-on: macos-13
permissions:
contents: read
packages: read
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
working-directory: android
- name: Install cargo-ndk
run: cargo install cargo-ndk
- name: Touch local.properties (required for cargo-ndk)
run: touch local.properties
working-directory: android
- name: Publish to Maven Central
run: ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache
working-directory: android
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.MAVEN_GPG_SECRET_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.MAVEN_GPG_PASSPHRASE }}