add build action
This commit is contained in:
@@ -0,0 +1,64 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- feature/new-ui
|
||||||
|
- feature/mono-repo
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- created
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_and_deploy_ios:
|
||||||
|
runs-on: [macos-latest]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Install RubyGems
|
||||||
|
run: |
|
||||||
|
cd packages/flutter_widgets/example/ios
|
||||||
|
bundle install
|
||||||
|
- uses: subosito/[email protected]
|
||||||
|
with:
|
||||||
|
channel: 'stable'
|
||||||
|
- name: Install firebase-tools
|
||||||
|
run: npm install -g firebase-tools
|
||||||
|
- name: Flutter setup
|
||||||
|
run: |
|
||||||
|
cd packages/flutter_widgets/example
|
||||||
|
flutter pub get
|
||||||
|
- name: Build and release
|
||||||
|
env:
|
||||||
|
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
|
||||||
|
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
|
||||||
|
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
||||||
|
run: |
|
||||||
|
cd packages/flutter_widgets/example
|
||||||
|
flutter build ios --release --no-codesign
|
||||||
|
cd ios
|
||||||
|
bundle exec fastlane deploy_to_firebase
|
||||||
|
build_and_deploy_android:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: '12.x'
|
||||||
|
- uses: subosito/[email protected]
|
||||||
|
with:
|
||||||
|
channel: 'stable'
|
||||||
|
- run: |
|
||||||
|
cd packages/flutter_widgets/example
|
||||||
|
flutter pub get
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
cd packages/flutter_widgets/example
|
||||||
|
flutter build apk
|
||||||
|
- name: Deploy
|
||||||
|
uses: wzieba/[email protected]
|
||||||
|
with:
|
||||||
|
appId: ${{secrets.FIREBASE_ANDROID_APPID}}
|
||||||
|
token: ${{secrets.FIREBASE_TOKEN}}
|
||||||
|
groups: stream-testers
|
||||||
|
file: example/build/app/outputs/apk/release/app-release.apk
|
||||||
Reference in New Issue
Block a user