Skip to content

Instantly share code, notes, and snippets.

@Kashif-E
Created December 10, 2022 15:13
Show Gist options
  • Save Kashif-E/c2d333399ad86c847e40b36fd5c0c2b2 to your computer and use it in GitHub Desktop.
Save Kashif-E/c2d333399ad86c847e40b36fd5c0c2b2 to your computer and use it in GitHub Desktop.
github action to build test and deploy android app
name: Build, test, and deploy Android app
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- run: ./gradlew build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- run: ./gradlew test
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- run: ./gradlew deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment