Skip to content

- add: GeocachingData.cacheUrlFull support for Lab caches #21

- add: GeocachingData.cacheUrlFull support for Lab caches

- add: GeocachingData.cacheUrlFull support for Lab caches #21

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:
# Prepare source code
# https://github.com/marketplace/actions/checkout
- name: Clone repo
uses: actions/checkout@v2
# Setup of environment
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
# 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 }}