Skip to content

Commit

Permalink
Update releaseDeploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fschiozerSFDC authored May 23, 2024
1 parent 7a50f74 commit 7cd60cd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/releaseDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,25 @@ jobs:
run: echo "y" | sf plugins install sf-orgdevmode-builds

- name: Download Artifact
uses: actions/fetch-gh-release-asset@v1.1.1
uses: dsaltares/fetch-gh-release-asset@1.1.1
with:
token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
version: tags/${{ inputs.tag }}
file: ${{ github.event.repository.name }}-${{ inputs.tag }}.zip

- name: Unzip artifact
run: unzip ${{ github.event.repository.name }}-${{ inputs.tag }}.zip -d outputdir/

- name: Extracting private key
- name: Extracting private key Non Prod
if: ${{ inputs.environment != 'prod' }}
working-directory: ./outputdir/
run: 'echo "${{ secrets.JWT_KEY_NONPROD }}" > server.key'

- name: Extracting private key Prod
if: ${{ inputs.environment == 'prod' }}
working-directory: ./outputdir/
run: 'echo "${{ secrets.JWT_KEY_PROD }}" > server.key'

- name: Running the build & deploy
working-directory: ./outputdir/
run: sf builds deploy --buildfile manifest/buildfile.json --client-id ${{ vars.CLIENT_ID }} --instance-url ${{ vars.INSTANCE_URL }} --username ${{ vars.USERNAME }} --jwt-key-file server.key

0 comments on commit 7cd60cd

Please sign in to comment.