Deploy to EDRDQA #135
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 to EDRDQA | |
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 | |
sf auth:sfdxurl:store --sfdx-url-file sfdxurl.txt --alias 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 --ignore-conflicts | |
# - 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 --ignore-conflicts | |
- name: Re-deploy default objects | |
run: sf project deploy start -d force-app/main/default/objects -o SAT-EDRDQA -w 15 --ignore-conflicts | |
- name: Re-deploy default queues | |
run: sf project deploy start -d force-app/main/default/queues -o SAT-EDRDQA -w 15 --ignore-conflicts | |
- name: Deploy source default OmniStudio-Components | |
run: sf project deploy start -d OmniStudio-Components -o SAT-EDRDQA -w 15 --ignore-conflicts | |
- name: Deploy Source in dev-app-post | |
run: sf project deploy start -d dev-app-post -o SAT-EDRDQA -w 15 --ignore-conflicts | |
# - name: Deploy destructive changes | |
# run: sdfx force:mdapi:deploy --postdestructivechanges destructiveChanges -u SAT-STAGING -o -g -l RunLocalTests -w 15 |