From 1f7526b2ba557ac1d9862c3409334548c88b9350 Mon Sep 17 00:00:00 2001 From: Silss <83656595+Silss@users.noreply.github.com> Date: Thu, 20 May 2021 18:20:42 +0300 Subject: [PATCH 1/2] Add or update the Azure App Service build and deployment workflow config --- .../connecting-front-end_blablah.yml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/connecting-front-end_blablah.yml diff --git a/.github/workflows/connecting-front-end_blablah.yml b/.github/workflows/connecting-front-end_blablah.yml new file mode 100644 index 0000000..4a33736 --- /dev/null +++ b/.github/workflows/connecting-front-end_blablah.yml @@ -0,0 +1,39 @@ +# Docs for the Azure Web Apps Deploy action: https://go.microsoft.com/fwlink/?linkid=2134798 +# More GitHub Actions for Azure: https://go.microsoft.com/fwlink/?linkid=2135048 + +name: Azure App Service - Blablah(Production), Build and deploy NodeJS app + +on: + push: + branches: + - connecting-front-end + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + # checkout the repo + - name: 'Checkout Github Action' + uses: actions/checkout@master + + + - name: Set up Node.js version + uses: actions/setup-node@v1 + with: + node-version: '10.x' + + - name: npm install, build, and test + run: | + npm install + npm run build --if-present + npm run test --if-present + + - name: Run Azure webapp deploy action using publish profile credentials + uses: azure/webapps-deploy@v2 + with: + app-name: Blablah + slot-name: Production + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_0019792E864D444797687218FE8C1B0C }} + package: . + From 3ed3af905dea32799c6eec3fa9d243b427fb5981 Mon Sep 17 00:00:00 2001 From: Silss <83656595+Silss@users.noreply.github.com> Date: Thu, 20 May 2021 18:30:21 +0300 Subject: [PATCH 2/2] Remove the Azure App Service build and deployment workflow config --- .../connecting-front-end_blablah.yml | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 .github/workflows/connecting-front-end_blablah.yml diff --git a/.github/workflows/connecting-front-end_blablah.yml b/.github/workflows/connecting-front-end_blablah.yml deleted file mode 100644 index 4a33736..0000000 --- a/.github/workflows/connecting-front-end_blablah.yml +++ /dev/null @@ -1,39 +0,0 @@ -# Docs for the Azure Web Apps Deploy action: https://go.microsoft.com/fwlink/?linkid=2134798 -# More GitHub Actions for Azure: https://go.microsoft.com/fwlink/?linkid=2135048 - -name: Azure App Service - Blablah(Production), Build and deploy NodeJS app - -on: - push: - branches: - - connecting-front-end - -jobs: - build-and-deploy: - runs-on: ubuntu-latest - - steps: - # checkout the repo - - name: 'Checkout Github Action' - uses: actions/checkout@master - - - - name: Set up Node.js version - uses: actions/setup-node@v1 - with: - node-version: '10.x' - - - name: npm install, build, and test - run: | - npm install - npm run build --if-present - npm run test --if-present - - - name: Run Azure webapp deploy action using publish profile credentials - uses: azure/webapps-deploy@v2 - with: - app-name: Blablah - slot-name: Production - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_0019792E864D444797687218FE8C1B0C }} - package: . -