Documentation

Visit Our xCloud Knowledge Base

Here is your one-stop source for in-depth articles, FAQs, and tutorials for you to excel at hosting & managing your websites.


How To Deploy Github Project From A Specific Branch

A deployment issue occurs when a webhook triggers a redeploy even if changes are pushed to a branch other than the selected production branch (e.g., main). This behavior causes unintended redeployments and may overwrite production with outdated or unrelated code.

To avoid this, you can control deployments directly from GitHub Actions by restricting execution to specific branches.

Step 1: Open Your GitHub Repository #

First, go to your GitHub repository. If you have already set the webhook, you need to remove the Webhooks from the dashboard. To remove, go to the โ€˜Settingsโ€™ from the menu. Then click on the โ€˜Deleteโ€™ webhooks that you have set for this repository with xCloud.

Step 1: Go To The Actions Menu #

Then go to the Actions tab in the top navigation bar. This section contains all automation workflows related to your project.

Step 3. Create a New Workflow #

Inside the Actions tab, look for an option labeled Set up a workflow yourself. Click on it to create a custom workflow from scratch. GitHub will open an editor where you can define your deployment logic using a YAML configuration file.

Step 4: Paste the Workflow Code #

In the editor, replace any default content with the following code:

name: Deployment

on:

ย ย push:

ย ย ย ย branches:

ย ย ย ย ย ย - main

jobs:

ย ย deploy:

ย ย ย ย runs-on: ubuntu-latest

ย ย ย ย steps:

ย ย ย ย ย ย - name: Deploy

ย ย ย ย ย ย ย ย run: |

ย ย ย ย ย ย ย ย ย ย curl https://app.xcloud.host/deploy?token=xxxxx

Update the branch name under โ€œbranches:โ€ to match the branch you want to trigger deployments from. For example:

BranchYAML Value
main– main
dev– dev

Replace the placeholder URL in the curl command with your actual xCloud deployment webhook URL:

curl https://app.xcloud.host/deploy?token=YOUR_ACTUAL_TOKEN

Click the green โ€œCommit changesโ€ button to save the workflow file to your repository.

And thatโ€™s it, this is how you can activate the workflow immediately. From this point forward, any push to the specified branch will automatically trigger the deployment process. This ensures that only intentional pushes to your production branch will trigger a deployment, preventing the accidental redeployments caused by the previous webhook setup.

Still stuck? Feel free to reach out to our support team.

What are your feelings

Updated on April 21, 2026

Server Name

RAM

SSD

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Newcomer

1GB

25GB

$4.50

$5.00

$6.00

Basic

2GB

55GB

$9.00

$10

$12.00

Standard

4GB

80GB

$18.00

$20

$24.00

Professional

8GB

160GB

$36.00

$40

$48.00

Business

16GB

320GB

$72.00

$80

$96.00

Server Name

RAM

SSD/NVMe

xCloud Provider Price/m
(For LTD users)

VULTR Price/m

DO Price/m

Lite

1GB

32GB

$5.40

$6.00

$8.00

Personal

2GB

88GB

$16.20

$18.00

$24.00

Growing

4GB

128GB

$21.60

$24.00

$32.00

Elite

8GB

256GB

$43.20

$48.00

$64.00

Titanium

8GB

384GB

$86.40

$96.00

$96.00

Ultimate

32GB

512GB

$172.80

$192.00

$192.00