Skip to content

- chg: restored missing getCoords method of HotSpot #28

- chg: restored missing getCoords method of HotSpot

- chg: restored missing getCoords method of HotSpot #28

name: Publish Locus API - Android
on:
push:
tags:
- 'Locus_API_Android_[0-9]+.[0-9]+.[0-9]+'
env:
ANDROID_SIGN_DEBUG: ${{ secrets.ANDROID_SIGN_DEBUG }}
ANDROID_SIGN_RELEASE: ${{ secrets.ANDROID_SIGN_RELEASE }}
jobs:
build:
name: Release API
runs-on: ubuntu-latest
# job steps
steps:
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
# Prepare source code
# https://github.com/marketplace/actions/checkout
- name: Clone repo
uses: actions/checkout@v2
# Base64 decodes and pipes the GPG key content into the secret file
- name: Prepare environment
env:
SIGNING_SECRET_KEY_CONTENT: ${{ secrets.SIGNING_SECRET_KEY_CONTENT }}
SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
run: |
git fetch --unshallow
sudo bash -c "echo '$SIGNING_SECRET_KEY_CONTENT' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'"
# Publish Locus API - Android
- name: Publish `locus-api-android`
run: ./gradlew :locus-api-android:clean :locus-api-android:publishReleasePublicationToMavencentralRepository
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
# Runs upload, and then closes & releases the repository
- name: Releaes repository
run: ./gradlew closeAndReleaseRepository
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}