Add .gitea/workflows/build-android.yaml
Build Custom Bluesky APK / build-android (push) Has been cancelled
Build Custom Bluesky APK / build-android (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
name: Build Custom Bluesky APK
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
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: '20'
|
||||
|
||||
- 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: Install Project Dependencies
|
||||
run: yarn install --frozen-lockfile
|
||||
|
||||
- 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
|
||||
Reference in New Issue
Block a user