39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
deploy-playstore:
|
|
name: Build & Deploy to Play Store
|
|
runs-on: self-hosted
|
|
if: github.ref == 'refs/heads/main'
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Prepare Keystore
|
|
env:
|
|
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
|
run: |
|
|
if [ -n "$ANDROID_KEYSTORE_BASE64" ]; then
|
|
echo "$ANDROID_KEYSTORE_BASE64" | base64 -d > android/app/upload-keystore.jks
|
|
else
|
|
echo "Error: ANDROID_KEYSTORE_BASE64 secret is not set."
|
|
exit 1
|
|
fi
|
|
|
|
- name: Build App Bundle
|
|
env:
|
|
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
|
|
run: nix develop --command task build-android-bundle
|
|
|
|
# Play Store upload disabled for now
|
|
# - name: Upload to Play Store
|
|
# env:
|
|
# PLAY_STORE_CONFIG_JSON: ${{ secrets.PLAY_STORE_CONFIG_JSON }}
|
|
# run: |
|
|
# echo "$PLAY_STORE_CONFIG_JSON" > play-store-key.json
|
|
# # nix develop --command fvm flutter pub run supply ...
|