66 lines
1.8 KiB
YAML
66 lines
1.8 KiB
YAML
name: Build Custom Bluesky APK
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-android:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Source Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Node.js Environment
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
|
|
- name: Set up Java Development Kit (JDK)
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '17'
|
|
|
|
- name: Install Android SDK Dependencies
|
|
uses: android-actions/setup-android@v3
|
|
|
|
- name: Enable Corepack
|
|
run: corepack enable
|
|
|
|
- name: Install Project Dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Debug - List Repo Structure
|
|
run: |
|
|
echo "Root contents:"
|
|
ls -la
|
|
echo "Looking for android folders:"
|
|
find . -maxdepth 3 -type d -iname "android"
|
|
|
|
- name: Inject Private Firebase Configuration
|
|
run: |
|
|
echo "${{ secrets.FIREBASE_JSON_BASE64 }}" | base64 -d > android/app/google-services.json
|
|
|
|
- name: Inject Release Keystore Certificate
|
|
run: |
|
|
echo "${{ secrets.ANDROID_KEYSTORE_BASE64 }}" | base64 -d > android/app/release.keystore
|
|
|
|
- name: Execute Android Build
|
|
env:
|
|
RELEASE_STORE_FILE: release.keystore
|
|
RELEASE_KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
|
|
RELEASE_STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
|
|
RELEASE_KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
|
|
run: |
|
|
cd android
|
|
./gradlew assembleRelease
|
|
|
|
- name: Upload Signed Application Artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Bluesky-Custom-Release
|
|
path: android/app/build/outputs/apk/release/app-release.apk |