From 79a3f6ab6789d455054cebd31a03f580a85d88c3 Mon Sep 17 00:00:00 2001 From: Mark Hamilton Date: Wed, 12 Aug 2020 15:49:23 -0400 Subject: [PATCH] Add or update the App Service deployment workflow configuration from Azure Portal. --- .github/workflows/master_mosaic-beta.yml | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/master_mosaic-beta.yml diff --git a/.github/workflows/master_mosaic-beta.yml b/.github/workflows/master_mosaic-beta.yml new file mode 100644 index 0000000..98fd577 --- /dev/null +++ b/.github/workflows/master_mosaic-beta.yml @@ -0,0 +1,35 @@ +# 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 - mosaic-beta + +on: + push: + branches: + - master + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + + - name: Set up Node.js version + uses: actions/setup-node@v1 + with: + node-version: '12.x' + + - name: npm install, build, and test + run: | + npm install + npm run build --if-present + npm run test --if-present + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + with: + app-name: 'mosaic-beta' + slot-name: 'production' + publish-profile: ${{ secrets.AzureAppService_PublishProfile_49db28a9807849198359c51c5330fea1 }} + package: . \ No newline at end of file