forked from kedziamichal/projekt-innowacja
-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (34 loc) · 1.2 KB
/
deploy-dev-branch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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"