Skip to content

chore(init): Init repo with xpeapp_android folder from XpeApp repo #2

chore(init): Init repo with xpeapp_android folder from XpeApp repo

chore(init): Init repo with xpeapp_android folder from XpeApp repo #2

Workflow file for this run

name: Build debug appbundle
on:
pull_request:
branches:
- main
jobs:
releaseAppBundle:
name: Build debug appbundle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
cache: gradle
- name: Create firebase config file
run: |
echo "${{ secrets.GOOGLE_SERVICE_FILE }}" | base64 -d > app/google-services.json
if [ -n "${{ secrets.UAT_CONFIG_FILE }}" ]; then
mkdir -p app/config
echo "${{ secrets.UAT_CONFIG_FILE }}" | base64 -d > app/config/uat.properties
fi
- name: Grant execute permission for gradlew and build
env:
GITHUB_USER: ${GITHUB_ACTOR}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
chmod +x ./gradlew
./gradlew bundleDebug
./gradlew assembleDebug
- name: Upload appbundle artifact
uses: actions/upload-artifact@v4
with:
name: debug-bundle
path: "app/build/outputs/bundle/debug/app-debug.aab"
- name: Upload apk artifact
uses: actions/upload-artifact@v4
with:
name: debug-apk
path: "app/build/outputs/apk/debug/app-debug.apk"