It works when I run the task from the command line and see the apk uploaded to the alpha channel.
The build runs fine and it is a green build but the deployment task in not triggered.
Is this a public project? If so can you paste the build URL?
Also keep in mind that if you are running the build via SSH (for debugging purposes) you will not be able to do the deployment phase. The Deployment phase is not run during SSH builds.
I am sorry, it is not a public project. I am not running the build via SSH. The deployment phase is not run at all. It runs up till the test phase. Then gets the artifacts and stops .
When you say branch:develop you are telling CircleCI to only run the deployments from that branch. So if you want to deploy from multiple branches you need to list them all.
Most people only deploy from a master branch (to production) and maybe a staging branch to staging, but you can certainly deploy from others.
Ok, this the right branch I am trying to deploy from, I am still trying to figure it out. Since it was not deploying I was thinking that it may be because the project is not the root directory.
No, that should not matter, as long as you are on the right branch (in this case develop) then ./gradlew publishApkProductionRelease should be running in the deployment phase. Does this run?
No, it does not run in deployment phase. I donât get any error or indication that it has run or failed. It runs on my local machine and deploys the apk.