Skip to content

Instantly share code, notes, and snippets.

@SteveOye
Last active February 11, 2023 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SteveOye/3a0467b3db7325d52795eb3cef875a54 to your computer and use it in GitHub Desktop.
Save SteveOye/3a0467b3db7325d52795eb3cef875a54 to your computer and use it in GitHub Desktop.
Action to push tp firebase app distribution
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