1Sync Logo Light

Learn Delta Deployment for Salesforce CI/CD

Use sfdx-git-delta to deploy Salesforce changes faster.

Learn Delta Deployment for Salesforce CI/CD

Run your Salesforce deployments faster for free using delta deployments and github actions. Get setup in under 5 minutes.

Features

  • Validate changes by opening a PR
  • Deploy changes by merging a PR
  • Deployment summary
  • Delta deployments

Requirements

  • npm
  • github

Configure

Inside your target repository, run the following command.

npx shadcn@latest add jawills/sf-pipeline/delta-ci-setup

This will copy the pipeline files from this github repository.

Next, you will need to get the Sfdx Auth Url to authenticate your production org.

Run the following command to get your production credentials, replacing your-org with your production org credentials.

sf org display  --target-org your-org --verbose

This will output the following:

KEYVALUE
Access Tokenyour-token
Aliasalias
Api Version67.0
Client IdPlatformCLI
Connected StatusConnected
Id00DO800000BAXXXXXX
Instance Urlhttps://alias--1sync.my.salesforce.com
Sfdx Auth Urlforce://PlatformCLI::token--1sync.my.salesforce.com
Username[email protected]

Take the Sfdx Auth Url,and add as the SFDX_AUTH_URL inside your repository settings.

repository-secrets

Then when you open a PR to merge from a branch like staging to main, you can see the summary results.

github-action-summary

This will validate the changes to the target environment when you open a pull request, and deploy the changes when you merge the pull request.

How it works

The sf-pipeline uses sfdx-git-delta under the hood from Sebastien to generate the package.xml needed to deploy Salesforce metadata using the metadata api. Then some light bash scripts wrap the sf cli to run the required scripts.

email icon

Need Our Help To Get Your Data Into Salesforce?

Join dozens of other companies by learning how you can get all your company's data in one place.

Get In Touch