Setup CI CD 19π«ΈπβοΈπ #16
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: Deploy Flutter App on AppCenter | |
on: | |
push: | |
branches: | |
- main | |
- 'releases/**' | |
jobs: | |
setup-flutter: | |
name: Setup Flutter | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "π Triggered by a ${{ github.event_name }} on ${{ github.ref }}" | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Install jq | |
uses: dcarbone/install-jq-action@v2.0.2 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: master | |
architecture: x64 | |
- run: flutter pub get | |
setup-appcenter-cli: # must have node and npm installed! | |
name: Setup AppCenter CLI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install appcenter-cli | |
uses: charliealbright/appcenter-cli-action@v1.0.1 | |
with: | |
token: '${{secrets.APPCENTER_API_TOKEN}}' | |
command: 'appcenter help' | |
# deploy_iOS: | |
# name: Deploy iOS | |
# needs: [setup-flutter, setup-appcenter-cli] | |
# uses: ./.github/workflows/deploy_ios.yml | |
deploy_android: | |
name: Deploy Android | |
needs: [ setup-flutter, setup-appcenter-cli ] | |
uses: ./.github/workflows/deploy_android.yml | |
secrets: inherit | |
with: | |
file: './build/app/outputs/apk/release/app-release.apk' | |
name: 'PEMUDA-PERSIS/QuranPERSIS' |