Skip to content

cd: setup automated continuous deployment to play store #14

cd: setup automated continuous deployment to play store

cd: setup automated continuous deployment to play store #14

Workflow file for this run

name: Analyze & Build
on:
pull_request:
branches: [ "main", "dev" ]
env:
# Setup env variables
JAVA_VERSION: 17
DISTRIBUTION: zulu
PACKAGE_NAME: co.circleapp.app
FLUTTER_CHANNEL: main
jobs:
# Run the Analyzer
analyze:
name: Analyze Project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: ${{ env.FLUTTER_CHANNEL }}
- run: flutter --version
- run: flutter pub get
- run: flutter analyze
# Build the Android application and provide build artifacts
build-android:
name: Build Android Application
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: ${{ env.FLUTTER_CHANNEL }}
- uses: actions/setup-java@v4
with:
distribution: ${{ env.DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
- run: flutter --version
- run: flutter pub get
# Build application
- run: flutter build apk
# Make build artifacts available
- name: Make Artifacts available
uses: actions/upload-artifact@v4
with:
name: apk
path: build/app/outputs/flutter-apk
# Build the iOS application and provide build artifacts
build-ios:
name: Build iOS Application
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: ${{ env.FLUTTER_CHANNEL }}
architecture: x64
- run: flutter pub get
- run: flutter build ios --release --no-codesign