Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/gulopez/NodejsWebApp1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Lopez committed Nov 9, 2020
2 parents 6c59b17 + 14fcd78 commit 9d089e4
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/master_nodejs2test.yml
Original file line number Diff line number Diff line change
@@ -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 - nodejs2test

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: 'nodejs2test'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_cd4644abee5846fcafb6513d7106cd03 }}
package: .

0 comments on commit 9d089e4

Please sign in to comment.