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 1bd4d74
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/release_staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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: macOS-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 app
run: flutter build ios --flavor staging -t lib/main-staging.dart --no-codesign

- name: Upload iPA
uses: actions/upload-artifact@master
with:
name: ios-build
path: build/ios/iphoneos
deploy_ios:
name: Deploy iOS
needs: [build_ios]
runs-on: ubuntu-latest
steps:
- name: Upload to Firebase Distribution
uses: hasretsariyer/[email protected]
with:
app_id: ${{secrets.FIREBASE_IOS_APP_ID}}
firebase_token: ${{secrets.FIREBASE_TOKEN}}
app_file: build/ios/iphoneos

0 comments on commit 1bd4d74

Please sign in to comment.