diff --git a/.github/workflows/continuous-delivery-pipeline.yml b/.github/workflows/continuous-delivery-pipeline.yml index 772668e..c7e6676 100644 --- a/.github/workflows/continuous-delivery-pipeline.yml +++ b/.github/workflows/continuous-delivery-pipeline.yml @@ -76,7 +76,7 @@ jobs: ./gradlew --console=plain detekt - name: Upload detekt reports - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: detekt path: app/build/reports/detekt/ @@ -112,7 +112,7 @@ jobs: ./gradlew --console=plain lint - name: Upload lint reports - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: lint path: | @@ -149,14 +149,14 @@ jobs: - name: Decode Android Keystore id: decode_keystore - uses: timheuer/base64-to-file@v1.1 + uses: timheuer/base64-to-file@v1.2 with: fileName: 'android_release.keystore' encodedString: ${{ secrets.ANDROID_KEYSTORE }} - name: Decode Gradle Play Publisher Credentials id: decode_play_store_credentials - uses: timheuer/base64-to-file@v1.1 + uses: timheuer/base64-to-file@v1.2 with: fileName: 'gradle_playstore_publisher_credentials.json' fileDir: './' @@ -249,7 +249,7 @@ jobs: - name: Upload artifact if: always() - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 with: name: androidTests path: app/build/reports/androidTests @@ -285,14 +285,14 @@ jobs: - name: Decode Android Keystore id: decode_keystore - uses: timheuer/base64-to-file@v1.1 + uses: timheuer/base64-to-file@v1.2 with: fileName: 'android_release.keystore' encodedString: ${{ secrets.ANDROID_KEYSTORE }} - name: Decode Gradle Play Publisher Credentials id: decode_play_store_credentials - uses: timheuer/base64-to-file@v1.1 + uses: timheuer/base64-to-file@v1.2 with: fileName: 'gradle_playstore_publisher_credentials.json' fileDir: './' @@ -317,7 +317,7 @@ jobs: ANDROID_JSON_KEY_FILE: './gradle_playstore_publisher_credentials.json' - name: Upload build artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: assets path: | diff --git a/.github/workflows/promote-release-in-playstore.yml b/.github/workflows/promote-release-in-playstore.yml index fa01cea..a5a54c9 100644 --- a/.github/workflows/promote-release-in-playstore.yml +++ b/.github/workflows/promote-release-in-playstore.yml @@ -35,7 +35,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 + with: + fetch-depth: '0' - name: Set up JDK 17 uses: actions/setup-java@v3 @@ -50,6 +52,11 @@ jobs: fileName: 'gradle_playstore_publisher_credentials.json' encodedString: ${{ secrets.ANDROID_KEYSTORE }} - - name: Promote release artifact - run: | - ./gradlew --console=plain app:promoteArtifact --from-track ${{ github.event.inputs.fromTrack }} --promote-track ${{ github.event.inputs.promoteTrack }} --user-fraction ${{ github.event.inputs.userFraction }} + - name: Publish release bundle + run: fastlane android promote --track_promote_to ${{ github.event.inputs.promoteTrack }} --rollout ${{ github.event.inputs.userFraction }} + env: + KEYSTORE_FILE: ${{ steps.decode_keystore.outputs.filePath }} + STORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} + KEY_ALIAS: ${{ secrets.ANDROID_KEYSTORE_KEY_ALIAS }} + KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }} + ANDROID_JSON_KEY_FILE: './gradle_playstore_publisher_credentials.json' diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 565ce4d..d0b17b0 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -24,12 +24,16 @@ platform :android do desc "Deploy a new version to the Google Play" lane :deploy do upload_to_play_store( - track: "alpha", + release_status: "inProgress", + track: "beta", + rollout: "1", skip_upload_apk: true, skip_upload_metadata: true, skip_upload_changelogs: true, skip_upload_images: true, - skip_upload_screenshots: true + skip_upload_screenshots: true, + changes_not_sent_for_review: true, + ack_bundle_installation_warning: true ) end end