Skip to content

Merge pull request #33 from AbRa734/PI-012 #22

Merge pull request #33 from AbRa734/PI-012

Merge pull request #33 from AbRa734/PI-012 #22

name: Deploy dev branch to integration org
on:
push:
branches: [ dev ]
paths: [force-app/**]
pull_request:
branches: [ dev ]
jobs:
deploy-branch-to-int-and-staging-orgs:
runs-on: ubuntu-latest
steps:
# Checkout the source code
- name: 'Checkout source code'
uses: actions/checkout@v3
with:
fetch-depth: 0
# Install Salesforce CLI
- 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
# Store secret for otg
- 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
# Authenticate to org
- name: 'Authenticate to Integration Org'
run: sfdx auth:sfdxurl:store -f ./SFDX_AUTH_URL.txt -s -a IntegratedOrg
- name: "Deploy the entire branch"
run: sfdx force:source:deploy -p "./force-app"