遷移 Course Connector 至 v3 與重構 Course Connector 實作細節 #403
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: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
jobs: | |
build-ios: | |
name: Build iOS | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ macos-latest ] | |
steps: | |
# Set up Flutter. | |
- name: Clone Flutter repository with stable channel | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.7.x' | |
# checkout codebase. | |
- name: Checkout codebase | |
uses: actions/checkout@v3 | |
# install ssh key | |
- name: Install SSH Key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_KEY }} | |
known_hosts: ${{ secrets.KNOWN_HOSTS }} | |
# Add GitHub token | |
- name: Add Github Token | |
uses: oleksiyrudenko/gha-git-credentials@v2 | |
with: | |
token: '${{ secrets.TAT_CORE_ACCESS_TOKEN }}' | |
email: '${{ secrets.EMAIL }}' | |
# Get packages. | |
- name: Get dependencies | |
run: flutter pub get | |
# Build ios app | |
- name: Build app | |
run: flutter build ios --no-codesign --flavor beta | |
build-aos: | |
name: Build AOS | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ macos-latest ] | |
steps: | |
# Set up Java. | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
# Set up Flutter. | |
- name: Clone Flutter repository with stable channel | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.7.x' | |
# checkout codebase. | |
- name: Checkout codebase | |
uses: actions/checkout@v3 | |
- name: Add Key property | |
run: echo "${{ secrets.ANDROID_KEY_PROPERTIES }}" > android/key.properties | |
# install ssh key | |
- name: Install SSH Key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_KEY }} | |
known_hosts: ${{ secrets.KNOWN_HOSTS }} | |
# Add Github token | |
- name: Add Github Token | |
uses: oleksiyrudenko/gha-git-credentials@v2 | |
with: | |
token: '${{ secrets.TAT_CORE_ACCESS_TOKEN }}' | |
email: '${{ secrets.EMAIL }}' | |
# Get packages. | |
- name: Get dependencies | |
run: flutter pub get | |
# Build aos app | |
- name: Build appbundle | |
run: flutter build appbundle --flavor beta |