mirror of
https://github.com/openflocon/Flocon.git
synced 2026-05-17 18:52:27 +00:00
34 lines
1.4 KiB
YAML
34 lines
1.4 KiB
YAML
name: Publish Android libs to maven MavenCentral
|
|
on:
|
|
release:
|
|
types: [released, prereleased]
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
jobs:
|
|
publish:
|
|
name: Release build and publish
|
|
runs-on: macOS-latest
|
|
steps:
|
|
- name: Check out code
|
|
uses: actions/checkout@v6
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: 21
|
|
- name: Check release # be sure op and no-op versions are building
|
|
working-directory: FloconAndroid
|
|
run: ./gradlew :sample-android-only:assemble
|
|
- name: Publish to MavenCentral
|
|
run: |
|
|
./gradlew \
|
|
publishToMavenCentral \
|
|
--no-configuration-cache
|
|
working-directory: FloconAndroid
|
|
env:
|
|
PROJECT_VERSION_NAME: ${{ github.ref_name }}
|
|
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALUSERNAME }}
|
|
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALPASSWORD }}
|
|
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEYID }}
|
|
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEYPASSWORD }}
|
|
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEY }}
|