Update .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:
@@ -34,33 +34,44 @@ jobs:
|
|||||||
- name: Install Project Dependencies
|
- name: Install Project Dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Debug - List Repo Structure
|
- name: Install EAS CLI
|
||||||
run: |
|
run: pnpm add -g eas-cli
|
||||||
echo "Root contents:"
|
|
||||||
ls -la
|
|
||||||
echo "Looking for android folders:"
|
|
||||||
find . -maxdepth 3 -type d -iname "android"
|
|
||||||
|
|
||||||
- name: Inject Private Firebase Configuration
|
- name: Inject Private Firebase Configuration
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.FIREBASE_JSON_BASE64 }}" | base64 -d > android/app/google-services.json
|
echo "${{ secrets.FIREBASE_JSON_BASE64 }}" | base64 -d > google-services.json
|
||||||
|
|
||||||
- name: Inject Release Keystore Certificate
|
- name: Inject Release Keystore Certificate
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.ANDROID_KEYSTORE_BASE64 }}" | base64 -d > android/app/release.keystore
|
echo "${{ secrets.ANDROID_KEYSTORE_BASE64 }}" | base64 -d > release.keystore
|
||||||
|
|
||||||
- name: Execute Android Build
|
- name: Generate Local Credentials File
|
||||||
env:
|
env:
|
||||||
RELEASE_STORE_FILE: release.keystore
|
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
|
||||||
RELEASE_KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
|
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
|
||||||
RELEASE_STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
|
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
|
||||||
RELEASE_KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
|
|
||||||
run: |
|
run: |
|
||||||
cd android
|
cat <<EOF > credentials.json
|
||||||
./gradlew assembleRelease
|
{
|
||||||
|
"android": {
|
||||||
|
"keystore": {
|
||||||
|
"keystorePath": "release.keystore",
|
||||||
|
"keystorePassword": "$KEYSTORE_PASSWORD",
|
||||||
|
"keyAlias": "$KEY_ALIAS",
|
||||||
|
"keyPassword": "$KEY_PASSWORD"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
- name: Run EAS Local Build
|
||||||
|
env:
|
||||||
|
EAS_NO_VCS: 1
|
||||||
|
run: |
|
||||||
|
eas build --platform android --profile selfhosted-android --local --non-interactive --output ./bluesky-custom.apk
|
||||||
|
|
||||||
- name: Upload Signed Application Artifact
|
- name: Upload Signed Application Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Bluesky-Custom-Release
|
name: Bluesky-Custom-Release
|
||||||
path: android/app/build/outputs/apk/release/app-release.apk
|
path: bluesky-custom.apk
|
||||||
Reference in New Issue
Block a user