Skip to content

Commit

Permalink
temporary reverting SF command for EDRD-QA deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakmulamalla committed Jan 29, 2024
1 parent 843ed51 commit 7b7daef
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/deploy-to-edrdqa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,42 @@ on:
workflow_dispatch:
inputs:


jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

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

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

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

- name: Deploy metadata
run: sf project deploy start -d force-app -o SAT-EDRDQA -w 15

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

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

- name: Deploy source default OmniStudio-Components
run: sf project deploy start -d OmniStudio-Components -o SAT-EDRDQA -w 15
run: sfdx force:source:deploy -p OmniStudio-Components -u SAT-EDRDQA -w 15

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

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

0 comments on commit 7b7daef

Please sign in to comment.