Skip to content

Dev #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
51 changes: 51 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Android CI

on:
push:
branches: [ master ]
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: 'adopt'

# Build the application
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build

# upload apk name and download build artifact apk should be same (32,39)
- name: Upload APK
uses: actions/upload-artifact@v1
with:
name: app
path: app/build/outputs/apk/debug/app-debug.apk

# Download a Build Artifact
- name: Download a Build Artifact
uses: actions/[email protected]
with:
name: app
path: ${{github.workspace}}/signedrelease

# Upload artifact to App Center (App Name (Name/App Name), App Center Token, App Cneter Group Name, file location)
- name: upload artefact to App Center
uses: wzieba/AppCenter-Github-Action@v1
with:
appName: ${{secrets.APP_CENTER_APPNAME}}
token: ${{secrets.APP_CENTER_TOKEN}}
group: ${{secrets.APP_CENTER_GROUP}}
file: ${{github.workspace}}/signedrelease/app-debug.apk
notifyTesters: true
debug: false
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ Sample Listing:
- Contact List
- Chapter 10: Publishing
- APK Instructions

test
test