Skip to content

Use undecoratedVersion in publish plugin (without -SNAPSHOT suffix) #11

Use undecoratedVersion in publish plugin (without -SNAPSHOT suffix)

Use undecoratedVersion in publish plugin (without -SNAPSHOT suffix) #11

Workflow file for this run

name: Build about module
on:
push:
branches: [ main ]
paths:
- about/**
pull_request:
branches:
- main
paths:
- about/**
jobs:
build:
if: ${{ ! startsWith(github.actor, 'dependabot') }}
environment: Development
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
cache: gradle
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1.0.5
- name: Decrypt the keystore for signing
run: |
echo "${{ secrets.KEYSTORE_ENCRYPTED }}" > keystore.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSWORD }}" --batch keystore.asc > keystore.jks
- name: Build about module
run: ./gradlew about:assembleRelease
- name: Build release sample APK
run: ./gradlew sample:assembleRelease
- name: Upload release arm64-v8a APK
uses: actions/upload-artifact@v3
with:
name: release-arm64-v8a-apk
path: ./sample/build/outputs/apk/release/sample-arm64-v8a-release.apk
- name: Upload release armeabi-v7a APK
uses: actions/upload-artifact@v3
with:
name: release-armeabi-v7a-apk
path: ./sample/build/outputs/apk/release/sample-armeabi-v7a-release.apk
- name: Upload release universal APK
uses: actions/upload-artifact@v3
with:
name: release-universal-apk
path: ./sample/build/outputs/apk/release/sample-universal-release.apk