release 0.0.3 for ui package (#457) #178
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
name: App Distribute CI | |
on: | |
push: | |
branches: | |
- develop | |
- main | |
env: | |
FLUTTER_VERSION: 3.10.0 | |
ENV_PROPERTIES: ${{ secrets.ENV_PROPERTIES }} | |
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }} | |
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }} | |
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }} | |
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build_and_deploy_ios: | |
name: Build and Distribute Dogfooding Ios | |
runs-on: macos-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
cache: true | |
- name: Setup Melos | |
run: flutter pub global activate melos | |
- name: Bootstrap workspace | |
run: melos bootstrap | |
- name: Prepare environment | |
run: echo "${{ env.ENV_PROPERTIES }}" > .env | |
- name: Setup Ruby and Gems | |
uses: ruby/setup-ruby@v1 | |
with: | |
working-directory: dogfooding/ios | |
bundler-cache: true | |
- name: Build and Distribute | |
run: | | |
cd dogfooding/ios | |
bundle exec fastlane ios build_and_deploy | |
build_and_deploy_android: | |
name: Build and Distribute Dogfooding Android | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
cache: true | |
- name: Setup Melos | |
run: flutter pub global activate melos | |
- name: Bootstrap workspace | |
run: melos bootstrap | |
- name: Prepare environment | |
run: echo "${{ env.ENV_PROPERTIES }}" > .env | |
- name: Setup Ruby and Gems | |
uses: ruby/setup-ruby@v1 | |
with: | |
working-directory: dogfooding/android | |
bundler-cache: true | |
- name: Build and Distribute | |
run: | | |
cd dogfooding/android | |
bundle exec fastlane android build_and_deploy | |
build_and_deploy_web: | |
name: Build and Distribute Dogfooding Web | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
cache: true | |
- name: Setup Melos | |
run: flutter pub global activate melos | |
- name: Bootstrap workspace | |
run: melos bootstrap | |
- name: Prepare environment | |
run: | | |
echo "${{ env.ENV_PROPERTIES }}" > .env | |
cd dogfooding && flutter pub run build_runner build --delete-conflicting-outputs | |
- name: Build and Distribute | |
uses: bluefireteam/flutter-gh-pages@v7 | |
with: | |
baseHref: /stream-video-flutter/ | |
workingDir: dogfooding |