diff --git a/.github/workflows/dev_app-salesforce-proxy-centralus-prod-001(qa).yml b/.github/workflows/dev_app-salesforce-proxy-centralus-prod-001(qa).yml deleted file mode 100644 index e1f3fb4..0000000 --- a/.github/workflows/dev_app-salesforce-proxy-centralus-prod-001(qa).yml +++ /dev/null @@ -1,62 +0,0 @@ -# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy -# More GitHub Actions for Azure: https://github.com/Azure/actions - -name: Build and deploy Node.js app to Azure Web App - app-salesforce-proxy-centralus-prod-001 - -on: - push: - branches: - - dev - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Set up Node.js version - uses: actions/setup-node@v3 - with: - node-version: '20.x' - - - name: npm install, build, and test - run: | - npm install - npm run build --if-present - npm run test --if-present - - - name: Zip artifact for deployment - run: zip release.zip ./* -r - - - name: Upload artifact for deployment job - uses: actions/upload-artifact@v4 - with: - name: node-app - path: release.zip - - deploy: - runs-on: ubuntu-latest - needs: build - environment: - name: 'qa' - url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} - - steps: - - name: Download artifact from build job - uses: actions/download-artifact@v4 - with: - name: node-app - - - name: Unzip artifact for deployment - run: unzip release.zip - - - name: 'Deploy to Azure Web App' - id: deploy-to-webapp - uses: azure/webapps-deploy@v3 - with: - app-name: 'app-salesforce-proxy-centralus-prod-001' - slot-name: 'qa' - package: . - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_416F2BDC573A4482B351C7D60D8099DB }} \ No newline at end of file diff --git a/.github/workflows/dev_app-salesforce-proxy-prod-us-eu.yml b/.github/workflows/dev_app-salesforce-proxy-prod-us-eu.yml index c430b45..5f64c8c 100644 --- a/.github/workflows/dev_app-salesforce-proxy-prod-us-eu.yml +++ b/.github/workflows/dev_app-salesforce-proxy-prod-us-eu.yml @@ -14,10 +14,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Node.js version - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: '20.x' @@ -27,11 +27,14 @@ jobs: npm run build --if-present npm run test --if-present + - name: Zip artifact for deployment + run: zip release.zip ./* -r + - name: Upload artifact for deployment job - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: node-app - path: . + path: release.zip deploy: runs-on: ubuntu-latest @@ -42,23 +45,26 @@ jobs: steps: - name: Download artifact from build job - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: node-app + - name: Unzip artifact for deployment + run: unzip release.zip + - name: 'Deploy to QA Azure Web App - app-salesforce-proxy-centralus-prod-001' id: deploy-to-webapp-centralus - uses: azure/webapps-deploy@v2 + uses: azure/webapps-deploy@v3 with: app-name: 'app-salesforce-proxy-centralus-prod-001' slot-name: 'qa' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_CENTRALUS_QA }} package: . + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_416F2BDC573A4482B351C7D60D8099DB }} - name: 'Deploy to Dev Azure Web App - app-salesforce-proxy-westeurope-prod-001' id: deploy-to-webapp-westeurope - uses: azure/webapps-deploy@v2 + uses: azure/webapps-deploy@v3 with: app-name: 'app-salesforce-proxy-westeurope-prod-001' slot-name: 'dev' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_WESTEUROPE_DEV }} + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_A9DAC02A428C43A3807091815095F756 }} package: . diff --git a/.github/workflows/dev_app-salesforce-proxy-westeurope-prod-001(dev).yml b/.github/workflows/dev_app-salesforce-proxy-westeurope-prod-001(dev).yml deleted file mode 100644 index 7944270..0000000 --- a/.github/workflows/dev_app-salesforce-proxy-westeurope-prod-001(dev).yml +++ /dev/null @@ -1,62 +0,0 @@ -# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy -# More GitHub Actions for Azure: https://github.com/Azure/actions - -name: Build and deploy Node.js app to Azure Web App - app-salesforce-proxy-westeurope-prod-001 - -on: - push: - branches: - - dev - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Set up Node.js version - uses: actions/setup-node@v3 - with: - node-version: '20.x' - - - name: npm install, build, and test - run: | - npm install - npm run build --if-present - npm run test --if-present - - - name: Zip artifact for deployment - run: zip release.zip ./* -r - - - name: Upload artifact for deployment job - uses: actions/upload-artifact@v4 - with: - name: node-app - path: release.zip - - deploy: - runs-on: ubuntu-latest - needs: build - environment: - name: 'dev' - url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} - - steps: - - name: Download artifact from build job - uses: actions/download-artifact@v4 - with: - name: node-app - - - name: Unzip artifact for deployment - run: unzip release.zip - - - name: 'Deploy to Azure Web App' - id: deploy-to-webapp - uses: azure/webapps-deploy@v3 - with: - app-name: 'app-salesforce-proxy-westeurope-prod-001' - slot-name: 'dev' - package: . - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_A9DAC02A428C43A3807091815095F756 }} \ No newline at end of file diff --git a/.github/workflows/master_app-salesforce-proxy-prod-us-eu.yml b/.github/workflows/master_app-salesforce-proxy-prod-us-eu.yml index f99e0ae..c032dd5 100644 --- a/.github/workflows/master_app-salesforce-proxy-prod-us-eu.yml +++ b/.github/workflows/master_app-salesforce-proxy-prod-us-eu.yml @@ -14,12 +14,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Node.js version - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: '12.x' + node-version: '20.x' - name: npm install, build, and test run: | @@ -27,11 +27,14 @@ jobs: npm run build --if-present npm run test --if-present + - name: Zip artifact for deployment + run: zip release.zip ./* -r + - name: Upload artifact for deployment job - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: node-app - path: . + path: release.zip deploy: runs-on: ubuntu-latest @@ -42,13 +45,16 @@ jobs: steps: - name: Download artifact from build job - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: node-app + - name: Unzip artifact for deployment + run: unzip release.zip + - name: 'Deploy to Azure Web App - app-salesforce-proxy-centralus-prod-001' id: deploy-to-webapp-centralus - uses: azure/webapps-deploy@v2 + uses: azure/webapps-deploy@v3 with: app-name: 'app-salesforce-proxy-centralus-prod-001' slot-name: 'Production' @@ -56,7 +62,7 @@ jobs: package: . - name: 'Deploy to Azure Web App - app-salesforce-proxy-westeurope-prod-001' id: deploy-to-webapp-westeurope - uses: azure/webapps-deploy@v2 + uses: azure/webapps-deploy@v3 with: app-name: 'app-salesforce-proxy-westeurope-prod-001' slot-name: 'Production'