Skip to content

Commit db1aec2

Browse files
authored
Merge pull request #37 from chintan-avnio/master
Updated Workflow file
2 parents 8881fca + 60cb069 commit db1aec2

File tree

4 files changed

+29
-141
lines changed

4 files changed

+29
-141
lines changed

.github/workflows/dev_app-salesforce-proxy-centralus-prod-001(qa).yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

.github/workflows/dev_app-salesforce-proxy-prod-us-eu.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1818

1919
- name: Set up Node.js version
20-
uses: actions/setup-node@v1
20+
uses: actions/setup-node@v3
2121
with:
2222
node-version: '20.x'
2323

@@ -27,11 +27,14 @@ jobs:
2727
npm run build --if-present
2828
npm run test --if-present
2929
30+
- name: Zip artifact for deployment
31+
run: zip release.zip ./* -r
32+
3033
- name: Upload artifact for deployment job
31-
uses: actions/upload-artifact@v2
34+
uses: actions/upload-artifact@v4
3235
with:
3336
name: node-app
34-
path: .
37+
path: release.zip
3538

3639
deploy:
3740
runs-on: ubuntu-latest
@@ -42,23 +45,26 @@ jobs:
4245

4346
steps:
4447
- name: Download artifact from build job
45-
uses: actions/download-artifact@v2
48+
uses: actions/download-artifact@v4
4649
with:
4750
name: node-app
4851

52+
- name: Unzip artifact for deployment
53+
run: unzip release.zip
54+
4955
- name: 'Deploy to QA Azure Web App - app-salesforce-proxy-centralus-prod-001'
5056
id: deploy-to-webapp-centralus
51-
uses: azure/webapps-deploy@v2
57+
uses: azure/webapps-deploy@v3
5258
with:
5359
app-name: 'app-salesforce-proxy-centralus-prod-001'
5460
slot-name: 'qa'
55-
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_CENTRALUS_QA }}
5661
package: .
62+
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_416F2BDC573A4482B351C7D60D8099DB }}
5763
- name: 'Deploy to Dev Azure Web App - app-salesforce-proxy-westeurope-prod-001'
5864
id: deploy-to-webapp-westeurope
59-
uses: azure/webapps-deploy@v2
65+
uses: azure/webapps-deploy@v3
6066
with:
6167
app-name: 'app-salesforce-proxy-westeurope-prod-001'
6268
slot-name: 'dev'
63-
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_WESTEUROPE_DEV }}
69+
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_A9DAC02A428C43A3807091815095F756 }}
6470
package: .

.github/workflows/dev_app-salesforce-proxy-westeurope-prod-001(dev).yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

.github/workflows/master_app-salesforce-proxy-prod-us-eu.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,27 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1818

1919
- name: Set up Node.js version
20-
uses: actions/setup-node@v1
20+
uses: actions/setup-node@v3
2121
with:
22-
node-version: '12.x'
22+
node-version: '20.x'
2323

2424
- name: npm install, build, and test
2525
run: |
2626
npm install
2727
npm run build --if-present
2828
npm run test --if-present
2929
30+
- name: Zip artifact for deployment
31+
run: zip release.zip ./* -r
32+
3033
- name: Upload artifact for deployment job
31-
uses: actions/upload-artifact@v2
34+
uses: actions/upload-artifact@v4
3235
with:
3336
name: node-app
34-
path: .
37+
path: release.zip
3538

3639
deploy:
3740
runs-on: ubuntu-latest
@@ -42,21 +45,24 @@ jobs:
4245

4346
steps:
4447
- name: Download artifact from build job
45-
uses: actions/download-artifact@v2
48+
uses: actions/download-artifact@v4
4649
with:
4750
name: node-app
4851

52+
- name: Unzip artifact for deployment
53+
run: unzip release.zip
54+
4955
- name: 'Deploy to Azure Web App - app-salesforce-proxy-centralus-prod-001'
5056
id: deploy-to-webapp-centralus
51-
uses: azure/webapps-deploy@v2
57+
uses: azure/webapps-deploy@v3
5258
with:
5359
app-name: 'app-salesforce-proxy-centralus-prod-001'
5460
slot-name: 'Production'
5561
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_24EBAA127DFC426FAA0714099E25A326 }}
5662
package: .
5763
- name: 'Deploy to Azure Web App - app-salesforce-proxy-westeurope-prod-001'
5864
id: deploy-to-webapp-westeurope
59-
uses: azure/webapps-deploy@v2
65+
uses: azure/webapps-deploy@v3
6066
with:
6167
app-name: 'app-salesforce-proxy-westeurope-prod-001'
6268
slot-name: 'Production'

0 commit comments

Comments
 (0)