omi icon indicating copy to clipboard operation
omi copied to clipboard

Automate development and production releases [$700]

Open josancamon19 opened this issue 1 year ago • 24 comments

Is your feature request related to a problem? Please describe. Use Github Actions + Fastlane to automate releases to alpha and production channels. When pushing to development branch, it should push a version to Testflight, and for android it should push an alpha version, when pushing to production, it should create draft releases for each platform.

Describe the solution you'd like When someone pushes to development or main, it should do what mentioned above.

Describe alternatives you've considered CircleCI, and others.

josancamon19 avatar Jun 17 '24 07:06 josancamon19

Hi. I'd like to work on this task. Are you set on using fastlane? Or does codemagic work for you as well?

pratikbaid3 avatar Jun 18 '24 04:06 pratikbaid3

Hi I am working on it, I am using Github Action

vinayshankardubey avatar Jun 18 '24 06:06 vinayshankardubey

@josancamon19 any chance you can assign the tasks that are already being worked on. This will prevent engineering waste. Thanks.

pratikbaid3 avatar Jun 18 '24 06:06 pratikbaid3

@josancamon19 any chance you can assign the tasks that are already being worked on. This will prevent engineering waste. Thanks.

Yes @josancamon19 , @pratikbaid3 is right

vinayshankardubey avatar Jun 18 '24 06:06 vinayshankardubey

Assigned to vinayshankardubey rn, please keep posting updates

josancamon19 avatar Jun 18 '24 21:06 josancamon19

If this doesn't get done, I'd be willing to make my own PR, but I wont start unless I'm asked to. I'm the kind of person to make it super clear, so you'll know exactly what secrets to set in the repo. Just let me know.

TekExplorer avatar Jun 18 '24 22:06 TekExplorer

Thanks @josancamon19 I am working on it

vinayshankardubey avatar Jun 19 '24 04:06 vinayshankardubey

Hi @josancamon19 ,

Hope you are doing well. As you have assigned me this task, finally I have implemented this functionality.

Now I'm able to create build, APK for android and IPA for iOS.after every push request on main branch. Currently this is generating debug build for android, for creating release build I need upload-keystore.jks file which is not available in the project file.

After this my plan is, Please provide credentials and make plan to deploy build directly on "Play Store" after build creation.

Please find below screenshots for check my work progress and also you can check my repo from here : https://github.com/vinayshankardubey/Friend

image

vinayshankardubey avatar Jun 19 '24 07:06 vinayshankardubey

image

vinayshankardubey avatar Jun 19 '24 08:06 vinayshankardubey

Hi @josancamon19 ,

Hope you are doing well. As you have assigned me this task, finally I have implemented this functionality.

Now I'm able to create build, APK for android and IPA for iOS.after every push request on main branch. Currently this is generating debug build for android, for creating release build I need upload-keystore.jks file which is not available in the project file.

After this my plan is, Please provide credentials and make plan to deploy build directly on "Play Store" after build creation.

Please find below screenshots for check my work progress and also you can check my repo from here : https://github.com/vinayshankardubey/Friend

image

Please create a PR as suggest for use to be able to give feedback from there

raymondyegon avatar Jun 19 '24 08:06 raymondyegon

Please create a PR as suggest for use to be able to give feedback from there

Sure @raymondyegon !

But write now this functionality is not completed please provide upload-keystore.jks so I can create release build for Android also, through CI/CD.Right now this code is on my github repo which I have forked from real project.

Please just guide me how can I put my functionality on real project because I also need access of real project to create TOKEN key which is needed at the time or running action, you can also create this.

I am creating PR and Guide also.

Thanks. @josancamon19

vinayshankardubey avatar Jun 19 '24 08:06 vinayshankardubey

Please send me a DM on discord @josancamon19 I'll share the jks key there, the key has to go as a secret btw, so that it is not exposed.

josancamon19 avatar Jun 19 '24 08:06 josancamon19

Please send me a DM on discord @josancamon19 I'll share the jks key there, the key has to go as a secret btw, so that it is not exposed.

@josancamon19 Please check just sent hi by vinayshankardubey

vinayshankardubey avatar Jun 19 '24 08:06 vinayshankardubey

@vinayshankardubey Please keep posting updates, happy to help if you have any issues, and it'd also help if you create a Draft PR

josancamon19 avatar Jun 20 '24 01:06 josancamon19

Hi Team,

I have just created a push request in development branch. Right now I have set this action will perform on push request on "main branch" and pull and push request on "development"

It's working properly at my end now we need to test it at real project.

Please take pull request of "development branch" but before pull request please help me to add two secret's on project "Secrets and Variable" section.

  1. Secret TOKEN : Make sure it name should be "TOKEN"
  2. upload-keystore.jks in Base64 format : I am using this because of security purpose generate bas64 format of upload-keystore.jks and add that key in secret with the name "SECRET_JKS"

Please help me to add these two dependencies then you can test it and please don't forget to give me feedback and suggestions if any.

Thanks @josancamon19 @kodjima33 @raymondyegon

image

vinayshankardubey avatar Jun 20 '24 05:06 vinayshankardubey

Hi Team,

Can you please review my PR and Let me know feedback's and suggestion's so that I can complete my work.

Thanks @josancamon19

vinayshankardubey avatar Jun 21 '24 07:06 vinayshankardubey

Hi Team,

Today I am going to integrate Fastlane.

Thanks.

vinayshankardubey avatar Jun 21 '24 07:06 vinayshankardubey

Hi Team,

I have implemented Fastlane. Just going for a final try But for making release on testflight and play store I need below credetials for configure in Appfiles for both cases.

iOS : app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app apple_id("[[APPLE_ID]]") # Your Apple Developer Portal username

itc_team_id("[[XXXXX]]") # App Store Connect Team ID team_id("[XXXXX]]") # Developer Portal Team ID

Android : Service Account JSON file: This file contains the credentials for your Google Play Developer API service account.

So please provide me credential so that I can head for next process.

Thanks

vinayshankardubey avatar Jun 24 '24 05:06 vinayshankardubey

Hi Team,

I have completed my fastlane integration for iOS and you can see , uploaded a testflight build also ....but it's working on my pc same functionality is not working with github actions.....I need some help ...Who can help me with xCode with Github Action..

and @josancamon19 please check discord.just dm you...I need some help

vinayshankardubey avatar Jul 02 '24 06:07 vinayshankardubey

Hi Team,

Still I am waiting please help me.

vinayshankardubey avatar Jul 05 '24 19:07 vinayshankardubey

Hi Team,

After a long R&D finally I have completed fastlane implementation for iOS. now when I am making push request on development it's deploying a testflight build within 5-10 minutes.

for Android work is also completed at my end but still I am waiting for service account json key. I have also admin access of google play console but only Account Holder can generate this key (https://devjorgecastro.medium.com/how-to-deploy-your-android-app-to-the-internal-track-in-the-play-store-console-using-fastlane-4f66efdabc12)

please provide me this json file so that I can perform task on android also.

Thanks @josancamon19 @kodjima33

vinayshankardubey avatar Jul 16 '24 05:07 vinayshankardubey

Use codemagic.io

legut2 avatar Jul 16 '24 13:07 legut2

Hi Team,

Still I am waiting for json file.. @josancamon19 @kodjima33

vinayshankardubey avatar Jul 18 '24 02:07 vinayshankardubey

Hi Team,

Can you please, reply me.So that I can complete this task. @kodjima33 @josancamon19

vinayshankardubey avatar Jul 27 '24 04:07 vinayshankardubey

Moved to other task using codemagic.io

josancamon19 avatar Aug 24 '24 19:08 josancamon19