diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 0000000..8efb810 --- /dev/null +++ b/.github/workflows/android.yml @@ -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/download-artifact@v2.0.8 + 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 diff --git a/README.md b/README.md index ba536bd..7576759 100644 --- a/README.md +++ b/README.md @@ -41,3 +41,6 @@ Sample Listing: - Contact List - Chapter 10: Publishing - APK Instructions + +test +test