Last active
April 5, 2022 19:54
-
-
Save vkeenan/a804be413512c1347990dea71626e484 to your computer and use it in GitHub Desktop.
GitHub Action: SFDX-CLI Deploy from Repository
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SFDX-CLI Deploy from Repository | |
on: [push] | |
jobs: | |
SFDX-CLI-Deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "🐧 GitHub Action running on ${{ runner.os }}" | |
- run: echo "🔎 Retrieving ${{ github.ref }} from ${{ github.repository }}." | |
- uses: actions/checkout@v2 | |
- run: npm install sfdx-cli -g | |
- run: echo "${{ secrets.SALESFORCE_JWT_SECRET_KEY }}" > server.key | |
- run: sfdx force:auth:jwt:grant --clientid=${{ secrets.SALESFORCE_CONSUMER_KEY }} --jwtkeyfile=server.key --username=${{ secrets.SALESFORCE_DEVHUB_USERNAME }} --setdefaultdevhubusername | |
- run: sfdx force:source:deploy --manifest=manifest/package.xml --testlevel=RunLocalTests -u ${{ secrets.SALESFORCE_DEVHUB_USERNAME }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment