36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
name: Publish AAR CI
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
sdk_version:
|
|
description: Enter SDK version (Ex. 1.0.0)
|
|
required: true
|
|
type: string
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-qa-debug:
|
|
runs-on: [ default ]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Log Build Metadata
|
|
run: |
|
|
echo "Commit SHA: ${{ github.sha }}"
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: 11
|
|
distribution: adopt
|
|
- name: Setup Android SDK
|
|
uses: android-actions/setup-android@v2
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
- name: Assemble with Stacktrace
|
|
run: ./gradlew assembleDebug --stacktrace
|
|
- name: Upload to nexus
|
|
run: ./gradlew publish -PIS_SNAPSHOT=true -PSDK_VERSION=${{ github.event.inputs.sdk_version }} -PNEXUS_URL=https://nexus.cmd.navi-tech.in/repository/maven-snapshots -PNEXUS_USERNAME=${{ secrets.NEXUS_USERNAME }} -PNEXUS_PASSWORD=${{ secrets.NEXUS_PASSWORD }} |