Last active
February 11, 2023 11:51
-
-
Save SteveOye/3a0467b3db7325d52795eb3cef875a54 to your computer and use it in GitHub Desktop.
Action to push tp firebase app distribution
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: Flutter | |
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: ubuntu-latest #runner: select a machine to use | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- uses: subosito/flutter-action@v1 | |
with: | |
channel: 'stable' | |
- name: Build Gradle | |
run: flutter build apk --debug | |
- run: ls build/app/outputs/flutter-apk | |
# - run: ls build/app/outputs/bundle/release | |
- name: Upload artifact to Firebase App Distribution | |
uses: wzieba/Firebase-Distribution-Github-Action@v1 | |
with: | |
appId: ${{secrets.APP_ID}} | |
serviceCredentialsFileContent: ${{secrets.CREDENTIAL_FILE_CONTENT}} | |
groups: sparrow_team | |
file: build/app/outputs/flutter-apk/app-debug.apk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment