Triple-T / gradle-play-publisher

GPP is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata.
MIT License
4.09k stars 339 forks source link

publish 2 modules (app and tv) to the same test track #1135

Open a-sarollahi opened 2 weeks ago

a-sarollahi commented 2 weeks ago

What are you having trouble with and how can we help you? I am building 2 apps one for mobile with the name app-test.aab in directory and the second one for TV with the name tv-test.aab when I use publishTestReleaseBundle one goes to /home/circleci/project/.artifacts/app/build/outputs/bundle/testRelease/app-test-release.aab and the other one goes to /home/circleci/project/.artifacts/tv/build/outputs/bundle/testRelease/tv-test-release.aab but when it start to publish the app this is what I see in the CI `> Task :tv:publishTestReleaseBundle Starting App Bundle upload: /home/circleci/project/.artifacts/app/build/outputs/bundle/testRelease/app-test-release.aab App Bundle upload complete Updating [draft, completed, inProgress] release (com.test.app:[1718804661, 1719929599]) in track 'internal'

Task :app:publishTestReleaseBundle Starting App Bundle upload: /home/circleci/project/.artifacts/app/build/outputs/bundle/testRelease/app-test-release.aab App Bundle upload complete Updating [draft, completed, inProgress] release (com.test.app:[1718804661, 1719929599]) in track 'internal'

Task :commitEditForComDotTestDotApp Committing changes`

it uses the same mobile app for tv instead of getting the tv app from /home/circleci/project/.artifacts/tv/build/outputs/bundle/testRelease/tv-test-release.aab

this is my CI config

if [ "<< parameters.prefix>>" == "publish" ]; then
              export EXTRA_ARGS="--artifact-dir .artifacts/app/build/outputs/bundle/<< parameters.flavor >>Release"
            fi
            mkdir -p app/build/outputs/apk/<< parameters.flavor >> tv/build/outputs/apk/<< parameters.flavor >> app/build/outputs/bundle/<< parameters.flavor >><< parameters.suffix >> tv/build/outputs/bundle/<< parameters.flavor >><< parameters.suffix >>
            test -d .artifacts/app/build/outputs/apk/<< parameters.flavor >> && cp -Rv .artifacts/app/build/outputs/apk/<< parameters.flavor >> app/build/outputs/apk/.
            test -d .artifacts/tv/build/outputs/apk/<< parameters.flavor >> && cp -Rv .artifacts/tv/build/outputs/apk/<< parameters.flavor >> tv/build/outputs/apk/.
            test -d .artifacts/app/build/outputs/bundle/<< parameters.flavor >><< parameters.suffix >> && cp -Rv .artifacts/app/build/outputs/bundle/<< parameters.flavor >><< parameters.suffix >> app/build/outputs/bundle/.
            test -d .artifacts/tv/build/outputs/bundle/<< parameters.flavor >><< parameters.suffix >> && cp -Rv .artifacts/tv/build/outputs/bundle/<< parameters.flavor >><< parameters.suffix >> tv/build/outputs/bundle/.
            export VERSION_CODE=$(date +%s)
            ./gradlew << parameters.prefix >><< parameters.flavor >><< parameters.suffix >> << pipeline.parameters.gradle_args >> ${EXTRA_ARGS}
 - store_test_results:
          path: app/build/reports
      - store_artifacts:
          path: app/build/reports
          destination: reports
      - persist_to_workspace:
          root: .
          paths:
            - "app/build/outputs/apk/<< parameters.flavor >>"
            - "app/build/outputs/bundle/<< parameters.flavor >><< parameters.suffix >>"
            - "tv/build/outputs/apk/<< parameters.flavor >>"
            - "tv/build/outputs/bundle/<< parameters.flavor >><< parameters.suffix >>"

I am using the same flavor name and appID in both modules.

github-actions[bot] commented 1 week ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

a-sarollahi commented 6 days ago

No help yet!