You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.3 KiB
41 lines
1.3 KiB
name: publish-android |
|
|
|
on: |
|
# release: |
|
# types: [published] |
|
|
|
workflow_dispatch: |
|
inputs: |
|
publish: |
|
description: 'Publish package (y/n)' |
|
default: 'n' |
|
|
|
jobs: |
|
publish: |
|
runs-on: ubuntu-latest |
|
steps: |
|
- uses: actions/checkout@v6 |
|
- uses: actions/setup-java@v5 |
|
with: |
|
distribution: 'temurin' |
|
java-version: '17' |
|
# working-directory: wrappers/android |
|
# run: ./gradlew versionDisplay |
|
|
|
- name: Build Library |
|
working-directory: wrappers/android |
|
run: ./gradlew assembleRelease |
|
|
|
- name: Publish Library |
|
if: ${{ github.event.inputs.publish == 'y' }} |
|
working-directory: wrappers/android |
|
env: |
|
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALUSERNAME }} |
|
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALPASSWORD }} |
|
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }} |
|
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.GPG_KEY_ID }} |
|
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_KEY_PASSWORD }} |
|
run: ./gradlew publishToMavenCentral --no-configuration-cache |
|
|
|
|
|
# To actually publish the the blob, login to https://central.sonatype.com/publishing/deployments.
|
|
|