From 38f106f777da2ca4fa24f2b432bba0c92e43deed Mon Sep 17 00:00:00 2001 From: Rajeshn <78465059+Rajeshcn02@users.noreply.github.com> Date: Fri, 16 Apr 2021 09:28:56 +0530 Subject: [PATCH 01/15] Create android.yml --- .github/workflows/android.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/android.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 0000000..537aaec --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,25 @@ +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' + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build From 175227cdecb2313e1df36ebbe41de87a5d0b80e8 Mon Sep 17 00:00:00 2001 From: Rajeshn <78465059+Rajeshcn02@users.noreply.github.com> Date: Fri, 16 Apr 2021 09:38:51 +0530 Subject: [PATCH 02/15] Update android.yml --- .github/workflows/android.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 537aaec..4fd50a5 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -23,3 +23,9 @@ jobs: run: chmod +x gradlew - name: Build with Gradle run: ./gradlew build + + - name: Upload APK + uses: actions/upload-artifact@v1 + with: + name: app + path: app/build/outputs/apk/debug/app-debug.apk From 6f79126f255b7b90f2b112055b8a8922785861eb Mon Sep 17 00:00:00 2001 From: Rajeshn <78465059+Rajeshcn02@users.noreply.github.com> Date: Fri, 16 Apr 2021 11:04:59 +0530 Subject: [PATCH 03/15] Create new-main.yml --- .github/workflows/new-main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/new-main.yml diff --git a/.github/workflows/new-main.yml b/.github/workflows/new-main.yml new file mode 100644 index 0000000..6c17d36 --- /dev/null +++ b/.github/workflows/new-main.yml @@ -0,0 +1,26 @@ +name: CI + +on: + push: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + + - uses: actions/checkout@v2 + + - uses: actions/setup-java@v1 + with: + java-version: '12.x' + + - uses: subosito/flutter-action@v1 + with: + flutter-version: '1.20.0' + + - run: flutter build apk + + - name: details + run : ls From 5f1986551f62266dbd449591c09bfb87b97cbf06 Mon Sep 17 00:00:00 2001 From: Rajeshn <78465059+Rajeshcn02@users.noreply.github.com> Date: Fri, 16 Apr 2021 11:08:29 +0530 Subject: [PATCH 04/15] Update new-main.yml --- .github/workflows/new-main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/new-main.yml b/.github/workflows/new-main.yml index 6c17d36..17fee91 100644 --- a/.github/workflows/new-main.yml +++ b/.github/workflows/new-main.yml @@ -19,7 +19,8 @@ jobs: - uses: subosito/flutter-action@v1 with: flutter-version: '1.20.0' - + + - run: flutter upgrade - run: flutter build apk - name: details From 8a29bedfeada98877933861a57a26f9cd7bec1b7 Mon Sep 17 00:00:00 2001 From: Rajeshn <78465059+Rajeshcn02@users.noreply.github.com> Date: Fri, 16 Apr 2021 11:11:46 +0530 Subject: [PATCH 05/15] Update new-main.yml --- .github/workflows/new-main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/new-main.yml b/.github/workflows/new-main.yml index 17fee91..4e71d0b 100644 --- a/.github/workflows/new-main.yml +++ b/.github/workflows/new-main.yml @@ -21,6 +21,7 @@ jobs: flutter-version: '1.20.0' - run: flutter upgrade + - run: flutter clean - run: flutter build apk - name: details From e7d89b64cde01325b8893b006caada0656d54634 Mon Sep 17 00:00:00 2001 From: Rajeshn <78465059+Rajeshcn02@users.noreply.github.com> Date: Fri, 16 Apr 2021 15:58:59 +0530 Subject: [PATCH 06/15] Delete new-main.yml --- .github/workflows/new-main.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 .github/workflows/new-main.yml diff --git a/.github/workflows/new-main.yml b/.github/workflows/new-main.yml deleted file mode 100644 index 4e71d0b..0000000 --- a/.github/workflows/new-main.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: CI - -on: - push: - branches: [ master ] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - - uses: actions/checkout@v2 - - - uses: actions/setup-java@v1 - with: - java-version: '12.x' - - - uses: subosito/flutter-action@v1 - with: - flutter-version: '1.20.0' - - - run: flutter upgrade - - run: flutter clean - - run: flutter build apk - - - name: details - run : ls From 4a130cbd95f95a2ac71d57a0dbae372caedca703 Mon Sep 17 00:00:00 2001 From: Rajeshn <78465059+Rajeshcn02@users.noreply.github.com> Date: Fri, 16 Apr 2021 18:36:13 +0530 Subject: [PATCH 07/15] Update android.yml --- .github/workflows/android.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 4fd50a5..ff4e630 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -29,3 +29,19 @@ jobs: with: name: app path: app/build/outputs/apk/debug/app-debug.apk + + - name: Download a Build Artifact + uses: actions/download-artifact@v2.0.8 + with: + name: Signed app bundle + path: ${{github.workspace}}/signedrelease + + - 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 From e63b9740d464efd6d92bbbaf96c026feab9ba2aa Mon Sep 17 00:00:00 2001 From: Rajeshn <78465059+Rajeshcn02@users.noreply.github.com> Date: Fri, 16 Apr 2021 18:40:09 +0530 Subject: [PATCH 08/15] Update android.yml --- .github/workflows/android.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index ff4e630..1c98ad6 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -33,7 +33,7 @@ jobs: - name: Download a Build Artifact uses: actions/download-artifact@v2.0.8 with: - name: Signed app bundle + name: app path: ${{github.workspace}}/signedrelease - name: upload artefact to App Center From 0c768ba1adfb628f173cde5a0f69bb146d1f338b Mon Sep 17 00:00:00 2001 From: Rajeshn <78465059+Rajeshcn02@users.noreply.github.com> Date: Fri, 16 Apr 2021 18:44:54 +0530 Subject: [PATCH 09/15] Update android.yml --- .github/workflows/android.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 1c98ad6..a0c0703 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -45,3 +45,4 @@ jobs: file: ${{github.workspace}}/signedrelease/app-debug.apk notifyTesters: true debug: false + From e2dec3856264899b9624e583365192735759d2fc Mon Sep 17 00:00:00 2001 From: Rajeshn <78465059+Rajeshcn02@users.noreply.github.com> Date: Fri, 16 Apr 2021 18:52:26 +0530 Subject: [PATCH 10/15] Update android.yml --- .github/workflows/android.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index a0c0703..1c98ad6 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -45,4 +45,3 @@ jobs: file: ${{github.workspace}}/signedrelease/app-debug.apk notifyTesters: true debug: false - From a74faddabe577753f391bf477a216ace1397f636 Mon Sep 17 00:00:00 2001 From: Rajeshn <78465059+Rajeshcn02@users.noreply.github.com> Date: Fri, 16 Apr 2021 18:57:32 +0530 Subject: [PATCH 11/15] Update android.yml From d67144d6d3eb1b5190abf5c4fc9377a47a165a33 Mon Sep 17 00:00:00 2001 From: Rajeshn <78465059+Rajeshcn02@users.noreply.github.com> Date: Sat, 17 Apr 2021 06:59:01 +0530 Subject: [PATCH 12/15] Update android.yml --- .github/workflows/android.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 1c98ad6..6b8bfe3 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -19,6 +19,7 @@ jobs: java-version: '11' distribution: 'adopt' +# Build the application - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle @@ -29,13 +30,15 @@ jobs: 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 - name: upload artefact to App Center uses: wzieba/AppCenter-Github-Action@v1 with: From a74e2143a54b0709c487e18753e9a9a1b5365e86 Mon Sep 17 00:00:00 2001 From: Rajeshn <78465059+Rajeshcn02@users.noreply.github.com> Date: Sun, 18 Apr 2021 07:30:38 +0530 Subject: [PATCH 13/15] Update android.yml --- .github/workflows/android.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 6b8bfe3..8efb810 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -24,7 +24,8 @@ jobs: 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: @@ -38,7 +39,7 @@ jobs: name: app path: ${{github.workspace}}/signedrelease -# Upload artifact to App Center +# 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: From af54a3cef3cec1306359447b196d6160b1e9f6f7 Mon Sep 17 00:00:00 2001 From: Rajeshn <78465059+Rajeshcn02@users.noreply.github.com> Date: Thu, 13 May 2021 20:10:41 +0530 Subject: [PATCH 14/15] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ba536bd..6f9424e 100644 --- a/README.md +++ b/README.md @@ -41,3 +41,5 @@ Sample Listing: - Contact List - Chapter 10: Publishing - APK Instructions + +test From d932ffa2f2cb21416b958df88f3a1f500814c15e Mon Sep 17 00:00:00 2001 From: Rajeshn <78465059+Rajeshcn02@users.noreply.github.com> Date: Wed, 23 Jun 2021 12:46:51 +0530 Subject: [PATCH 15/15] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6f9424e..7576759 100644 --- a/README.md +++ b/README.md @@ -43,3 +43,4 @@ Sample Listing: - APK Instructions test +test