Skip to content

Commit

Permalink
Merge pull request #1087 from bcgov/BCMOHAD-18447
Browse files Browse the repository at this point in the history
BCMOHAD-18447 || updating sfdx to sf style commands
  • Loading branch information
NataliaNikishina authored Jan 12, 2024
2 parents b60dd43 + beaa02a commit 111048d
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/deploy-to-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,35 @@ jobs:

- name: 'Install Salesforce CLI'
run: |
wget https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz
wget https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-linux-x64.tar.xz
mkdir ~/sfdx
tar xJf sfdx-linux-x64.tar.xz -C ~/sfdx --strip-components 1
tar xJf sf-linux-x64.tar.xz -C ~/sfdx --strip-components 1
echo "$HOME/sfdx/bin" >> $GITHUB_PATH
~/sfdx/bin/sfdx version
~/sfdx/bin/sf version
- name: Authenticate with Sandbox
run: |
echo ${{ secrets.SALESFORCE_STAGE_AUTH }} > sfdxurl.txt
sfdx auth:sfdxurl:store --sfdxurlfile sfdxurl.txt --setalias SAT-STAGING
sf auth:sfdxurl:store --sfdx-url-file sfdxurl.txt --alias SAT-STAGING
- name: Remove auth file
run: rm -f ./sfdxurl.txt

- name: Deploy Source in dev-app-pre
run: sfdx force:source:deploy -p dev-app-pre -u SAT-STAGING -w 15
run: sf project deploy start -d dev-app-pre -o SAT-STAGING -w 15

- name: Install version ID
run: sfdx force:package:install --package "${{ github.event.inputs.package }}" -u SAT-STAGING -b 15 -w 15 --noprompt --wait 10
run: sf package install --package "${{ github.event.inputs.package }}" -o SAT-STAGING -b 15 -w 15 --noprompt --wait 10

- name: Re-deploy metadata
run: sfdx force:source:deploy -p force-app/main/default/objects,force-app/main/default/queues -u SAT-STAGING -w 15
- name: Re-deploy default objects
run: sf project deploy start -d force-app/main/default/objects -o SAT-STAGING -w 15
# run: sfdx force:source:deploy -p force-app/main/default/objects,force-app/main/default/queues -u SAT-STAGING -w 15

- name: Re-deploy default queues
run: sf project deploy start -d force-app/main/default/queues -o SAT-STAGING -w 15

- name: Deploy Source in dev-app-post
run: sfdx force:source:deploy -p dev-app-post -u SAT-STAGING -w 15
run: sf project deploy start -d dev-app-post -o SAT-STAGING -w 15

# - name: Deploy destructive changes
# run: sdfx force:mdapi:deploy --postdestructivechanges destructiveChanges -u SAT-STAGING -o -g -l RunLocalTests -w 15

0 comments on commit 111048d

Please sign in to comment.