Use env variable for submit_to_appstore option #1916
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduceWe want to use env variables to determine whether to publish the app or not (different clients etc.) but use the same workflow. Currently, the publishing section looks like this: publishing:
app_store_connect:
api_key: $APP_STORE_CONNECT_PRIVATE_KEY
key_id: $APP_STORE_CONNECT_KEY_IDENTIFIER
issuer_id: $APP_STORE_CONNECT_ISSUER_ID
submit_to_testflight: true
submit_to_app_store: $APP_STORE_SUBMIT_TO_STORE The variable Expected resultsBuild should just complete like normal Actual resultsThe build stops already at the yaml validation with the message: Build id (optional)64c13f3a5bbed199534c8ae9 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hey @daniel-naegele, could you please provide more information about your use case? When you would like to publish the app and when you would prefer not to publish it? |
Beta Was this translation helpful? Give feedback.
-
I'm not 100% sure, but I think ou can achieve this by using the inputs !
So if you are running it in the UI, the question will be asked |
Beta Was this translation helpful? Give feedback.
Hey @daniel-naegele, unfortunately, you can't use environment variables for that field. But you can create a different job inside the same workflow and have different values for the
submit_to_app_store
field, like this;if you are a white-label user, just trigger the workflows you want to build through rest API