Merge pull request #39 from AbRa734/PI-016 #35
This file contains 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: "[Deploy] Deploy changes to SF org" | |
on: | |
push: | |
branches: | |
- "dev" | |
paths: | |
- "force-app/**" | |
workflow_dispatch: | |
jobs: | |
deploy-branch-to-int-and-staging-orgs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout source code' | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: 'Install Salesforce CLI' | |
run: | | |
wget https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz | |
mkdir ~/sfdx | |
tar xJf sfdx-linux-x64.tar.xz -C ~/sfdx --strip-components 1 | |
echo "$HOME/sfdx/bin" >> $GITHUB_PATH | |
~/sfdx/bin/sfdx version | |
- name: 'Populate auth file with SFDX_URL secret of the integration and staging orgs' | |
shell: bash | |
run: | | |
echo ${{ secrets.SFDX_AUTH_URL}} > ./SFDX_AUTH_URL.txt | |
- name: 'Authenticate to Integration Org' | |
run: sfdx auth:sfdxurl:store -f ./SFDX_AUTH_URL.txt -s -a integration | |
- name: "Deploy metadata" | |
run: sfdx force:source:deploy -p "./force-app" |