update actions
This commit is contained in:
@@ -4,39 +4,12 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
release:
|
workflow_dispatch:
|
||||||
types:
|
|
||||||
- created
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: stream_chat_v1
|
working-directory: stream_chat_v1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_deploy_ios:
|
|
||||||
runs-on: [macos-latest]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Install RubyGems
|
|
||||||
run: |
|
|
||||||
cd ios
|
|
||||||
bundle install
|
|
||||||
- uses: subosito/[email protected]
|
|
||||||
with:
|
|
||||||
channel: 'stable'
|
|
||||||
- name: Install firebase-tools
|
|
||||||
run: npm install -g firebase-tools
|
|
||||||
- name: Flutter setup
|
|
||||||
run: |
|
|
||||||
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: |
|
|
||||||
flutter build ios --release --no-codesign
|
|
||||||
cd ios
|
|
||||||
bundle exec fastlane deploy_to_firebase
|
|
||||||
build_and_deploy_android:
|
build_and_deploy_android:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -49,21 +22,9 @@ jobs:
|
|||||||
channel: 'stable'
|
channel: 'stable'
|
||||||
- run: |
|
- run: |
|
||||||
flutter pub get
|
flutter pub get
|
||||||
- name: Decode google-services.json
|
|
||||||
env:
|
|
||||||
ANDROID_GOOGLE_SERVICES: ${{ secrets.ANDROID_GOOGLE_SERVICES }}
|
|
||||||
run: echo $ANDROID_GOOGLE_SERVICES > ./android/app/google-services.json
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
flutter build apk
|
flutter build apk
|
||||||
- name: Deploy
|
|
||||||
uses: wzieba/[email protected]
|
|
||||||
with:
|
|
||||||
appId: ${{secrets.FIREBASE_ANDROID_APPID}}
|
|
||||||
token: ${{secrets.FIREBASE_TOKEN}}
|
|
||||||
groups: stream-testers
|
|
||||||
debug: true
|
|
||||||
file: stream_chat_v1/build/app/outputs/apk/release/app-release.apk
|
|
||||||
- name: upload apk
|
- name: upload apk
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -0,0 +1,65 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- develop
|
||||||
|
workflow_dispatch:
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: stream_chat_v1
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_and_deploy_ios:
|
||||||
|
runs-on: [macos-latest]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Install RubyGems
|
||||||
|
run: |
|
||||||
|
cd ios
|
||||||
|
bundle install
|
||||||
|
- uses: subosito/[email protected]
|
||||||
|
with:
|
||||||
|
channel: 'stable'
|
||||||
|
- name: Install firebase-tools
|
||||||
|
run: npm install -g firebase-tools
|
||||||
|
- name: Flutter setup
|
||||||
|
run: |
|
||||||
|
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: |
|
||||||
|
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: |
|
||||||
|
flutter pub get
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
flutter build apk
|
||||||
|
- name: Deploy
|
||||||
|
uses: wzieba/[email protected]
|
||||||
|
with:
|
||||||
|
appId: ${{secrets.FIREBASE_ANDROID_APPID}}
|
||||||
|
token: ${{secrets.FIREBASE_TOKEN}}
|
||||||
|
groups: stream-testers
|
||||||
|
debug: true
|
||||||
|
file: stream_chat_v1/build/app/outputs/apk/release/app-release.apk
|
||||||
|
- name: upload apk
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: android-stream-chat-v1
|
||||||
|
path: stream_chat_v1/build/app/outputs/apk/release/app-release.apk
|
||||||
Reference in New Issue
Block a user