Skip to content

Commit

Permalink
Add Dev Hub authentication step
Browse files Browse the repository at this point in the history
  • Loading branch information
jefersonchaves committed Sep 30, 2019
1 parent e728ba2 commit 4f7aa90
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ jobs:
run: npm install sfdx
- name: Decrypt Dev Hub file
env:
DEVHUB_PASS: ${{ secrets.DEVHUB_PASS }}
run: gpg --quiet --batch --yes --decrypt --passphrase="$DEVHUB_PASS" --output $GITHUB_WORKSPACE/.github/devhub/server.key $GITHUB_WORKSPACE/.github/devhub/server.key.gpg
SALESFORCE_JWT_SECRET_KEY_PASS: ${{ secrets.SALESFORCE_JWT_SECRET_KEY_PASS }}
run: gpg --quiet --batch --yes --decrypt --passphrase="$SALESFORCE_JWT_SECRET_KEY_PASS" --output $GITHUB_WORKSPACE/.github/devhub/server.key $GITHUB_WORKSPACE/.github/devhub/server.key.gpg
- name: Authenticate DevHub
run: node_modules/sfdx-cli/bin/run force:auth:jwt:grant --clientid ${{ secrets.SALESFORCE_CONSUMER_KEY }} --jwtkeyfile $GITHUB_WORKSPACE/.github/devhub/server.key --username ${{ secrets.SALESFORCE_DEVHUB_USERNAME}} --setdefaultdevhubusername -a devhub

0 comments on commit 4f7aa90

Please sign in to comment.