Skip to content

version 1.3.5

version 1.3.5 #236

Workflow file for this run

name: Gradle
on:
push:
branches: [ master ]
paths-ignore:
- '**/README.md'
- '**/.gitignore'
- '.run/**'
pull_request:
branches: [ master ]
paths-ignore:
- '**/README.md'
- '**/.gitignore'
- '.run/**'
jobs:
build:
name: 🎉 Build
runs-on: ubuntu-latest
steps:
# Testing the plugin source requires checking out into `buildSrc`.
- name: 🚚 Get latest code
uses: actions/checkout@v4
# https://github.com/actions/setup-java
- name: ☕ Set up AWS Corretto JDK 17
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: '17'
architecture: x64
- name: 🔢 Configure build
shell: bash
env:
JAVA_KEYSTORE_DEBUG: ${{ secrets.JAVA_KEYSTORE_DEBUG }}
JAVA_KEYSTORE_UPLOAD: ${{ secrets.JAVA_KEYSTORE_UPLOAD }}
JAVA_KEYSTORE_PROPERTIES: ${{ secrets.JAVA_KEYSTORE_PROPERTIES }}
AGC_API_CONFIG: ${{ secrets.AGC_API_CONFIG }}
AGC_APP_RELEASE_CONFIG: ${{ secrets.AGC_APP_RELEASE_CONFIG }}
AGC_APP_DEBUG_CONFIG: ${{ secrets.AGC_APP_DEBUG_CONFIG }}
run: |
chmod +x ./gradlew
mkdir ~/.android
mkdir $GITHUB_WORKSPACE/distribution
mkdir -p $GITHUB_WORKSPACE/mobile/src/huaweiDebug
mkdir -p $GITHUB_WORKSPACE/mobile/src/huaweiRelease
echo $JAVA_KEYSTORE_DEBUG > ~/.android/debug.keystore
echo $JAVA_KEYSTORE_UPLOAD > ~/.android/upload.keystore
echo $JAVA_KEYSTORE_PROPERTIES > $GITHUB_WORKSPACE/keystore.properties
echo $AGC_API_CONFIG > $GITHUB_WORKSPACE/distribution/agc-apiclient.json
echo $AGC_APP_DEBUG_CONFIG > $GITHUB_WORKSPACE/mobile/src/huaweiDebug/agconnect-services.json
echo $AGC_APP_RELEASE_CONFIG > $GITHUB_WORKSPACE/mobile/src/huaweiRelease/agconnect-services.json
- name: Build with Gradle
env:
AGC_PACKAGE_ID: ${{ secrets.AGC_PACKAGE_ID }}
run: |
./gradlew :build
cd ./build/libs
ls -la | grep jar
- name: 📦 Retain Artifact (JAR)
id: retain-plugin-jar
uses: actions/upload-artifact@v4
with:
name: buildSrc
path: ./build/libs/*.jar
retention-days: 14