diff --git a/.github/workflows/android_deploy_production_build.yml b/.github/workflows/android_deploy_production_build.yml index bb91865f..507b0d60 100644 --- a/.github/workflows/android_deploy_production_build.yml +++ b/.github/workflows/android_deploy_production_build.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - chore/publish-to-playstore workflow_dispatch: jobs: @@ -54,30 +55,30 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- - - name: Run unit tests with Kover - run: ./gradlew koverMergedXmlReport - - - name: Upload coverage to codecov - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos - files: ./build/reports/kover/merged/xml/report.xml - flags: unittests # optional - fail_ci_if_error: false - verbose: true - - uses: chkfung/android-version-actions@v1.1 with: gradlePath: android/build.gradle.kts versionCode: ${{ github.run_number }} - - name: Build Production release APK - run: ./gradlew assembleProductionRelease + # - name: Build Production release APK + # run: ./gradlew assembleProductionRelease + # + # - name: Deploy staging to Firebase + # uses: wzieba/Firebase-Distribution-Github-Action@v1 + # with: + # appId: '1:835959262689:android:cfc4c7eb6425a49c0896a0' + # serviceCredentialsFileContent: ${{ secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON }} + # groups: nimble + # file: android/build/outputs/apk/production/release/android-production-release.apk + + - name: Build the Production App Bundle + run: ./gradlew bundleProductionRelease - - name: Deploy staging to Firebase - uses: wzieba/Firebase-Distribution-Github-Action@v1 + - name: Upload the Android Production bundle to the Play Store + uses: r0adkll/upload-google-play@v1 with: - appId: '1:835959262689:android:cfc4c7eb6425a49c0896a0' - serviceCredentialsFileContent: ${{ secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON }} - groups: nimble - file: android/build/outputs/apk/production/release/android-production-release.apk + serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }} + packageName: vn.luongvo.kmm.survey.android + releaseFiles: android/build/outputs/bundle/productionRelease/android-production-release.aab + track: internal + whatsNewDirectory: .github/workflows/whatsnew diff --git a/.github/workflows/android_deploy_staging_build.yml b/.github/workflows/android_deploy_staging_build.yml index a64a9bc2..6f944713 100644 --- a/.github/workflows/android_deploy_staging_build.yml +++ b/.github/workflows/android_deploy_staging_build.yml @@ -39,18 +39,6 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- - - name: Run unit tests with Kover - run: ./gradlew koverMergedXmlReport - - - name: Upload coverage to codecov - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos - files: ./build/reports/kover/merged/xml/report.xml - flags: unittests # optional - fail_ci_if_error: false - verbose: true - - uses: chkfung/android-version-actions@v1.1 with: gradlePath: android/build.gradle.kts diff --git a/.github/workflows/review_pull_request.yml b/.github/workflows/review_pull_request.yml deleted file mode 100644 index 7d1726af..00000000 --- a/.github/workflows/review_pull_request.yml +++ /dev/null @@ -1,73 +0,0 @@ -name: Review pull request - -on: - pull_request: - types: [ opened, reopened, edited, synchronize, ready_for_review ] - -jobs: - review_pull_request: - name: Review pull request - runs-on: ubuntu-latest - timeout-minutes: 30 - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.10.0 - with: - access_token: ${{ github.token }} - - - name: Setup Java JDK - uses: actions/setup-java@v3 - with: - distribution: 'adopt' - java-version: '11' - - - name: Checkout source code - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Setup BuildKonfig Properties - env: - BUILD_KONFIG_PROPERTIES: ${{ secrets.BUILD_KONFIG_PROPERTIES }} - run: | - echo $BUILD_KONFIG_PROPERTIES | base64 --decode > buildKonfig.properties - - - name: Cache Gradle - uses: actions/cache@v3 - with: - path: | - ~/.gradle/caches/modules-* - ~/.gradle/caches/jars-* - ~/.gradle/caches/build-cache-* - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} - restore-keys: | - ${{ runner.os }}-gradle- - - - name: Run Detekt - run: ./gradlew detekt - - - name: Run Lint - run: ./gradlew lintStagingDebug - - - name: Run unit tests with Kover - run: ./gradlew koverMergedXmlReport - - - name: Set up Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: '2.7' - bundler-cache: true - - - name: Run Danger - env: - DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: bundle exec danger - - - name: Upload coverage to codecov - uses: codecov/codecov-action@v3 - with: - token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos - files: ./build/reports/kover/merged/xml/report.xml - flags: unittests # optional - fail_ci_if_error: false - verbose: true diff --git a/.github/workflows/whatsnew/whatsnew-en-US b/.github/workflows/whatsnew/whatsnew-en-US new file mode 100644 index 00000000..6230febe --- /dev/null +++ b/.github/workflows/whatsnew/whatsnew-en-US @@ -0,0 +1,3 @@ + +Enter or paste your release notes for en-US here +