Skip to content

try no1

try no1 #4

Workflow file for this run

name: Build and upload APK
on:
push:
branches:
- main
jobs:
build:
name: Build and Upload to release
permissions:
contents: write
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '12'
- name: Create .env File
run: |
echo "SUPABASEURL=${{secrets.SUPABASEURL}}" >> .env
echo "ANONKEY=${{secrets.ANONKEY}}" >> .env
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.19.6'
channel: 'stable'
- name: verify flutter version
run: flutter --version
- name: Install dependencies
run: flutter pub get
- name: Decode Keystore
env:
ENCODED_STRING: ${{ secrets.KEYSTORE }}
run: |
TMP_KEYSTORE_FILE_PATH="${RUNNER_TEMP}"/keystore
mkdir "${TMP_KEYSTORE_FILE_PATH}"
echo $ENCODED_STRING | base64 -di > "${TMP_KEYSTORE_FILE_PATH}"/experiment_keystore.jks
- name: Make gradlew executable
run: chmod +x android/./gradlew
- name: Build APK and ios
run: flutter build apk --release --split-per-abi
- run: |
flutter build ios --no-codesign
cd build/ios/iphoneos
mkdir Payload
cd Payload
ln -s ../Runner.app
cd ..
zip -r app.ipa Payload