Hello there! Indeed, this section is quite complex, and I see there were some details that I didn't explain well :( Let me try here in this reply, and see how it goes.
We are not deploying to Ubuntu server. We are deploying to the Google Play console.
The GitHub Action that will run when we push the code will spin up an Ubuntu virtual machine, and it will configure it accordingly (will install Java version 17 on it)
Next, it will run the steps one after another.
- build the code,
- run the tests,
- generate an aab
- sign it
- deploy it to Google Play
Once all these operations are done, the VM gets shut down, and released.
I hope that I made it clearer a little but, but I won't be surprised if you need more details.
Please do not hesitate to ask more questions if that's the case, I'm happy to answer them