https://github.com/jawills/sf-deploy
Deploy SF Metadata using Github Actions
https://github.com/jawills/sf-deploy
apex github-actions salesforce salesforce-developers sf-cli sfdx
Last synced: 3 months ago
JSON representation
Deploy SF Metadata using Github Actions
- Host: GitHub
- URL: https://github.com/jawills/sf-deploy
- Owner: jawills
- License: mit
- Created: 2023-08-13T12:39:40.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2026-01-06T17:28:09.000Z (4 months ago)
- Last Synced: 2026-02-10T20:08:59.268Z (3 months ago)
- Topics: apex, github-actions, salesforce, salesforce-developers, sf-cli, sfdx
- Homepage: https://www.1sync.co/deploy-salesforce-code-with-github-actions
- Size: 11.7 KB
- Stars: 15
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Salesforce Deployment GitHub Actions
Use this action to build the `package.xml` and deploy to a specified Salesforce environment.
## Inputs
```yml
DRY_RUN:
description: "Validate deploy and run Apex tests but don't save to the org."
type: boolean
TEST_LEVEL:
description: "Deployment Apex testing level."
type: choice
default: "RunLocalTests"
options:
- NoTestRun
- RunSpecifiedTests
- RunLocalTests
- RunAllTestsInOrg
WAIT:
description: "Number of minutes to wait for command to complete and display results."
type: number
default: 30
SOURCE_DIRECTORY:
description: "Path to the local source files to deploy."
type: string
default: "force-app"
SFDX_AUTH_URL:
description: "The auth url tied to your deployment environment"
type: string
required: true
```
## Getting the SFDX Auth URL
To get the `SFDX_AUTH_URL`, enter the following command in your terminal:
```bash
sf org display --verbose --json -o
```
Copy down the value of `sfdxAuthUrl` for later.
## Usage
You can see how these work by checking my [write-up](https://www.1sync.co/build-salesforce-deployment-pipeline-with-github-actions) or [YouTube video](https://youtu.be/R31DWnkiYpY).