Skip to content

Commit

Permalink
cd: setup automated continuous deployment to play store
Browse files Browse the repository at this point in the history
Setup Continuous Delivery to Google Play Store with release notes.
Also setup automated versioning
Auto increments the build number & updates the pubspec.yaml
Updated CI file, refactored stuff
  • Loading branch information
nuilewis committed Dec 28, 2024
1 parent bdc8fbc commit 68a4c16
Show file tree
Hide file tree
Showing 3 changed files with 324 additions and 72 deletions.
138 changes: 66 additions & 72 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
@@ -1,80 +1,74 @@
name: Analyze, Test and Build
on:
pull_request:
branches: [ "main", "dev" ]

jobs:

# Run the Analyzer
analyze:
name: Analyze Project
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'main'
- 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: 'main'

- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'

- 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: 'main'
architecture: x64
- run: flutter pub get
- run: flutter build ios --release --no-codesign


# Run tests on the project
# test:
# name: Run Basic Unit Tests
#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
# 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
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v4
# - uses: subosito/flutter-action@v2
# with:
# channel: 'stable'
# 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
# - run: flutter test


#
# # 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
# 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
#
#
#
#
Loading

0 comments on commit 68a4c16

Please sign in to comment.