Skip to content

Commit

Permalink
chore: setup cd pipelines (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
markgravity committed May 20, 2021
1 parent 57ba141 commit 46c46fd
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release_staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This is a lint and test workflow for Flutter CI

name: Relase Staging

# on:
# push:
# branches:
# - develop
# pull_request:
# branches:
# - develop
on:
pull_request:
jobs:
build_ios:
name: Build Flutter (ios)
runs-on: ubuntu-latest
steps:
# Setup Java environment in order to build the Android app.
- uses: actions/[email protected]
- uses: actions/setup-java@v1
with:
java-version: '12.x'

# Setup the Flutter environment.
- uses: subosito/flutter-action@v1
with:
channel: 'stable' # 'dev', 'alpha', default to: 'stable'
# flutter-version: '1.12.x' # uncomment this to specify the exact version of Flutter

- name: Get Flutter dependencies.
run: flutter pub get

- name: Build ios app
run: flutter build ios --flavor staging -t lib/main-staging.dart --no-codesign

- name: Upload Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{secrets.FIREBASE_IOS_APP_ID}}
token: ${{secrets.FIREBASE_TOKEN}}
groups: testers
file: build/ios/iphoneos

0 comments on commit 46c46fd

Please sign in to comment.