path fix #2
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: Distribution | |
on: #events (push and pull_request) | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: #here we specify the jobs - We could have multiple jobs | |
build: #name it something meaningful | |
runs-on: macos-latest #runner: select a machine to use | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '12.x' | |
- uses: subosito/flutter-action@v1 | |
with: | |
channel: 'stable' | |
- name: Upload-keystore generator | |
run: | | |
echo "${{secrets.UPLOAD_KEYSTORE}}" > upload.keystore.asc | |
base64 -d --input upload.keystore.asc --output android/app/upload.keystore | |
- name: Install dependencies | |
run: flutter pub get # action | |
- name: Run clean | |
run: flutter clean | |
- name: Run tests | |
run: flutter test | |
- name: Build android appBundle | |
run: flutter build appbundle --release | |
#- name: Build ios | |
# run: flutter build ios --release --no-codesign | |
- name: Upload artifact to Firebase App Distribution | |
uses: wzieba/Firebase-Distribution-Github-Action@v1 | |
with: | |
appId: ${{secrets.FIREBASE_APP_ID}} | |
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }} | |
groups: testers | |
file: build/app/outputs/bundle/release/app-release.aab |