Skip to content

splash dimension conflit #4

splash dimension conflit

splash dimension conflit #4

Workflow file for this run

name: "Build & Release"
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
name: Build & Release
runs-on: macos-latest
steps:
# Step 1: Checkout the code
- uses: actions/checkout@v3
# Step 2: Set up Flutter environment
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
architecture: x64
# Step 3: Set up Java environment
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
# Step 4: Build the release APK
- name: Build Android APK
run: flutter build apk --release --split-per-abi
# Step 5: Build the release IPA
# - name: Build iOS IPA
# run: |
# flutter build ios --no-codesign
# cd build/ios/iphoneos
# mkdir Payload
# cd Payload
# ln -s ../Runner.app
# cd ..
# zip -r app.ipa Payload
# Step 6: Upload artifacts to GitHub Releases
- name: Push to Releases
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/release/*,build/ios/iphoneos/app.ipa"
tag: v1.0.${{ github.run_number }}
token: ${{ secrets.TOKEN }}