Bump version to 3.3.0 #24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
push: | |
tags: | |
- v* | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: "Tag to upload artifacts to" | |
required: false | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: | | |
11 | |
17 | |
cache: gradle | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v3 | |
- name: Install NDK | |
uses: nttld/setup-ndk@v1 | |
with: | |
ndk-version: r25c | |
- name: Register NDK | |
run: | | |
echo $PATH | |
echo 'ndk.path=/opt/hostedtoolcache/ndk/r25c/x64' >> local.properties | |
- name: Write GPG Sec Ring | |
run: echo '${{ secrets.GPG_KEY_CONTENTS }}' | base64 -d > /tmp/secring.gpg | |
- name: Update gradle.properties | |
run: echo -e "signing.secretKeyRingFile=/tmp/secring.gpg\nsigning.keyId=${{ secrets.SIGNING_KEY_ID }}\nsigning.password=${{ secrets.SIGNING_PASSWORD }}\nmavenCentralPassword=${{ secrets.SONATYPE_NEXUS_PASSWORD }}\nmavenCentralUsername=${{ secrets.SONATYPE_NEXUS_USERNAME }}" >> gradle.properties | |
- name: Upload Android Archives | |
run: ./gradlew publish --no-daemon --no-parallel --info --stacktrace | |
- name: Release and close | |
run: ./gradlew closeAndReleaseRepository | |
- name: Clean secrets | |
if: always() | |
run: rm /tmp/secring.gpg |