Skip to content

Instantly share code, notes, and snippets.

@yusufonderd
Last active February 11, 2022 08:36
Show Gist options
  • Save yusufonderd/c5e2ac19ee95f30cec652b8823a322f7 to your computer and use it in GitHub Desktop.
Save yusufonderd/c5e2ac19ee95f30cec652b8823a322f7 to your computer and use it in GitHub Desktop.
name: Android CI
on:
push:
branches: [ master, development ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: build debug
run: ./gradlew assembleDebug
- name: upload artifact to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{secrets.FIREBASE_APP_ID}}
token: ${{secrets.FIREBASE_TOKEN}}
groups: testers
file: app/build/outputs/apk/debug/app-debug.apk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment