-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cd: setup automated continuous deployment to play store
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
Showing
3 changed files
with
334 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
# | ||
# | ||
# | ||
# |
Oops, something went wrong.