You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Learn how to deploy your apps directly from GitHub branch.
5
+
tags: [Apple App Store, Google Play Store, Deployment, GitHub]
6
+
sidebar_position: 5
7
+
keywords: [Apple App Store, Google Play Store, Deployment, GitHub]
8
+
---
9
+
10
+
If your FlutterFlow project is connected to a GitHub repository, the generated code can be pushed to GitHub, giving you full control over your project’s code. Then, you can deploy your app directly from the same repository, rather than deploying through FlutterFlow.
11
+
12
+
Deploying from GitHub is particularly beneficial when:
13
+
14
+
- You have written custom code that cannot be managed directly in FlutterFlow, such as features that require advanced Flutter functionality.
15
+
- You want to manage the source code in an external GitHub repository for better version control.
16
+
- You want to automate the process of deploying your app directly from GitHub to the Play Store or App Store after modifying the code.
17
+
- You want to deploy from a specific branch of your GitHub repository.
18
+
19
+
## Steps to Deploy
20
+
21
+
To deploy from a GitHub repository:
22
+
23
+
1. If you haven't already added your project to the GitHub repository, follow the instructions provided [here](../exporting-code/push-to-github.md#connect-a-github-repo).
24
+
2. In FlutterFlow, go to **Settings & Integrations > App Settings > Mobile Deployment.**
25
+
3. Locate the **Deployment Source** section and click the arrow icon on the right to expand it.
26
+
4. Turn on the toggle for **Use GitHub repo: [your repo URL]**.
27
+
5. Enter the branch name of your repository that contains the code you want to deploy. Ensure the branch name is correct.
28
+
6. Click the **Deploy to App Store** or **Deploy to Play Store** button, depending on your desired platform for deployment.
When deploying from your GitHub branch, you will need to manage the app versioning manually. This is done through the `pubspec.yaml` file. For example, to set the version to **1.1.0** and the build number to **2**, you can use the format: `version: 1.1.0+2`.
<summary>I am having an issue while Deploying from a GitHub branch. Error: *You uploaded an APK or Android App Bundle that was signed in debug mode. You need to sign your APK or Android App Bundle in release mode.*</summary>
44
+
<p>
45
+
46
+
If you are experiencing problems deploying or uploading to the Google Play Store from a Github branch, check to make sure your `build.gradle` file is correct.
3. Newer Flutterflow code will automatically have these lines added. If yours doesn't, you can push it to your `flutterflow` branch on GitHub and merge in the changes or add them like so:
Copy file name to clipboardExpand all lines: docs/testing-deployment-publishing/publishing/google-playstore-deployment.md
+5-78Lines changed: 5 additions & 78 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -314,57 +314,19 @@ You can now deploy directly from FlutterFlow or from your GitHub repository.
314
314
315
315
:::info
316
316
317
-
- Every time you deploy, we'll auto increment the 'Build Number' (i.e., version code in Android). If needed, you can update the **App Version** and **Build Number** yourself.
317
+
- Every time you deploy, we'll auto increment the **Build Number** (i.e., version code in Android) to ensure that each release is identifiable. If needed, you can update the *App Version* and *Build Number* yourself.
318
318
- We'll [**auto-generate**](https://developer.android.com/studio/publish/app-signing#generate-key) and [**sign**](https://developer.android.com/studio/publish/app-signing#sign_release) your app for the release with the Keystore (i.e., upload key). If you wish to download the keystore, click the orange key button.
319
319
320
320
:::
321
321
322
-
<Tabs>
323
-
<TabItemvalue="FF"label="Deploy From FlutterFlow"default>
324
-
Ensure the **Google Play Track** is set to **Internal** and hit the **Deloy to Play Store** again. On successful deployment, you will see the status as 'finished'.
322
+
Ensure the **Google Play Track** is set to **Internal** and hit the **Deloy to Play Store** again. On successful deployment, you will see the status as 'finished'.
[Connecting the Github](../exporting-code/push-to-github.md) repo allows you to introduce the custom code into your FlutterFlow project. You may want to deploy the modified code directly from your Github repo to Play Store.
332
-
333
-
To deploy from Github repo:
334
-
335
-
1. If you haven't added the Github repo yet, you can do so using the instructions [here](../exporting-code/push-to-github.md).
336
-
2. Navigate to **Settings & Integrations > App Settings >****Mobile****Deployment**.
337
-
3. Find the **Deployment Settings** section and click on the arrow icon on the right to open it.
338
-
4. Under the **Deployment Source**, enable the **Use Github repo**.
339
-
5. Enter the **Branch Name** of your repo, from which you want to deploy the code. Make sure to enter the correct branch name.
340
-
341
-
<div style={{
342
-
position: 'relative',
343
-
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
If you prefer to manage your deployment process outside of FlutterFlow, such as integrating with your own CI/CD pipeline, or if you want more control over versioning and custom code management directly on GitHub. You also have the option to [**Deploy apps from your GitHub repository**](deploy-from-github.md).
329
+
:::
368
330
369
331
370
332
#### 4.4 Verify deployment
@@ -445,38 +407,3 @@ Watch this video if you prefer watching a video tutorial.
445
407
</iframe>
446
408
</div>
447
409
448
-
## FAQs
449
-
450
-
<details>
451
-
<summary>I am having an issue while Deploying from a GitHub branch</summary>
452
-
<p>
453
-
454
-
If you are experiencing problems deploying or uploading to the Google Play Store and are deploying from a Github branch, check to make sure your `build.gradle` file is correct.
3. Newer Flutterflow code will automatically have these lines added. If yours doesn't, you can push it to your `flutterflow` branch on GitHub and merge in the changes or add them like so:
0 commit comments